You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: examples/with-docker/Dockerfile
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,20 @@
1
1
# Install dependencies only when needed
2
-
FROM node:alpine AS deps
2
+
FROM node:14-alpine AS deps
3
3
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
4
4
RUN apk add --no-cache libc6-compat
5
5
WORKDIR /app
6
6
COPY package.json yarn.lock ./
7
7
RUN yarn install --frozen-lockfile
8
8
9
9
# Rebuild the source code only when needed
10
-
FROM node:alpine AS builder
10
+
FROM node:14-alpine AS builder
11
11
WORKDIR /app
12
12
COPY . .
13
13
COPY --from=deps /app/node_modules ./node_modules
14
14
RUN yarn build
15
15
16
16
# Production image, copy all the files and run next
0 commit comments