Skip to content

Commit

Permalink
Merge pull request craigary#1 from Vaayne/docker-file
Browse files Browse the repository at this point in the history
fix bug when run with docker, can't load  the Gravater image
  • Loading branch information
vaayne authored Jul 27, 2021
2 parents 54b81f3 + 1cf0d66 commit acca2d4
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,10 @@ ARG NOTION_PAGE_ID
WORKDIR /app
COPY . .
COPY --from=deps /app/node_modules ./node_modules
RUN echo "NOTION_PAGE_ID: ${NOTION_PAGE_ID}"
RUN yarn build

# Production image, copy all the files and run next
FROM node:14-alpine AS runner
WORKDIR /app

ENV NODE_ENV production

RUN addgroup -g 1001 -S nodejs
RUN adduser -S nextjs -u 1001

# You only need to copy next.config.js if you are NOT using the default configuration
# COPY --from=builder /app/next.config.js ./
COPY --from=builder /app/public ./public
COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package.json ./package.json

USER nextjs

EXPOSE 3000

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

0 comments on commit acca2d4

Please sign in to comment.