Skip to content

Commit acca2d4

Browse files
authored
Merge pull request craigary#1 from Vaayne/docker-file
fix bug when run with docker, can't load the Gravater image
2 parents 54b81f3 + 1cf0d66 commit acca2d4

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

Dockerfile

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,10 @@ ARG NOTION_PAGE_ID
1414
WORKDIR /app
1515
COPY . .
1616
COPY --from=deps /app/node_modules ./node_modules
17-
RUN echo "NOTION_PAGE_ID: ${NOTION_PAGE_ID}"
1817
RUN yarn build
1918

20-
# Production image, copy all the files and run next
21-
FROM node:14-alpine AS runner
22-
WORKDIR /app
23-
2419
ENV 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-
3821
EXPOSE 3000
3922

4023
# Next.js collects completely anonymous telemetry data about general usage.

0 commit comments

Comments
 (0)