File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,27 +14,10 @@ ARG NOTION_PAGE_ID
1414WORKDIR /app
1515COPY . .
1616COPY --from=deps /app/node_modules ./node_modules
17- RUN echo "NOTION_PAGE_ID: ${NOTION_PAGE_ID}"
1817RUN yarn build
1918
20- # Production image, copy all the files and run next
21- FROM node:14-alpine AS runner
22- WORKDIR /app
23-
2419ENV NODE_ENV production
2520
26- RUN addgroup -g 1001 -S nodejs
27- RUN adduser -S nextjs -u 1001
28-
29- # You only need to copy next.config.js if you are NOT using the default configuration
30- # COPY --from=builder /app/next.config.js ./
31- COPY --from=builder /app/public ./public
32- COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next
33- COPY --from=builder /app/node_modules ./node_modules
34- COPY --from=builder /app/package.json ./package.json
35-
36- USER nextjs
37-
3821EXPOSE 3000
3922
4023# Next.js collects completely anonymous telemetry data about general usage.
You can’t perform that action at this time.
0 commit comments