Skip to content

Commit

Permalink
update Docker file, set directory permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
craigrbarnes committed Dec 10, 2024
1 parent c339bc8 commit d639b54
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ WORKDIR /gen3

RUN addgroup --system --gid 1001 nextjs && \
adduser --system --uid 1001 nextjs

COPY --from=builder /gen3/config ./config
COPY --from=builder /gen3/public ./public
COPY --from=builder /gen3/.next/standalone ./
COPY --from=builder /gen3/.next/static ./.next/static

USER nextjs
COPY --from=builder --chown=nextjs:nextjs /gen3/config ./config
COPY --from=builder --chown=nextjs:nextjs /gen3/public ./public
COPY --from=builder --chown=nextjs:nextjs /gen3/.next/standalone ./
COPY --from=builder --chown=nextjs:nextjs /gen3/.next/static ./.next/static

ENV PORT=3000
CMD ["node", "server.js"]

0 comments on commit d639b54

Please sign in to comment.