Skip to content

Commit

Permalink
Update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
barbara-chaves committed Sep 27, 2023
1 parent 92eea3b commit dc27166
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ENV NEXT_TELEMETRY_DISABLED 1

WORKDIR /app
COPY .yarn ./.yarn
COPY public ./public
COPY package.json .yarnrc.yml yarn.lock .prettierrc.js ./

WORKDIR /app/client
Expand All @@ -32,6 +33,7 @@ RUN adduser --system --uid 1001 nextjs
COPY --from=build --chown=nextjs:nodejs /app/client/.next ./.next
COPY --from=build --chown=nextjs:nodejs /app/client/entrypoint.sh ./entrypoint.sh
COPY --from=build /app/node_modules ./node_modules
COPY --from=build /app/public ./public
COPY --from=build /app/client/package.json ./package.json

USER nextjs
Expand Down

0 comments on commit dc27166

Please sign in to comment.