File tree 2 files changed +47
-0
lines changed
2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ .git /
2
+ .github /
3
+
4
+ .yarn /*
5
+ ! .yarn /releases
6
+ ! .yarn /plugins
7
+ ! .yarn /sdks
8
+ ! .yarn /versions
9
+ .pnp. *
10
+ node_modules
11
+
12
+ build /
13
+ coverage /
14
+
15
+ yarn-debug.log *
16
+ yarn-error.log *
Original file line number Diff line number Diff line change
1
+ FROM node:14-alpine AS builder
2
+
3
+ RUN apk add --no-cache libc6-compat
4
+
5
+ WORKDIR /app
6
+ COPY package.json yarn.lock .yarnrc.yml ./
7
+ COPY .yarn ./.yarn
8
+ COPY patches ./patches
9
+
10
+ RUN yarn install --immutable
11
+
12
+ COPY . .
13
+
14
+ ARG BUILD_ID
15
+ RUN BUILD_ID=${BUILD_ID} yarn build
16
+
17
+ FROM node:14-alpine
18
+
19
+ WORKDIR /app
20
+ COPY --from=builder /app/node_modules ./node_modules
21
+ COPY --from=builder /app/build ./build
22
+ COPY --from=builder /app/public ./public
23
+ COPY --from=builder /app/next.config.js ./
24
+
25
+ ENV NODE_ENV production
26
+
27
+ USER node
28
+
29
+ EXPOSE 3000
30
+
31
+ CMD [ "node_modules/.bin/next" , "start" ]
You can’t perform that action at this time.
0 commit comments