Skip to content

Commit

Permalink
feat: update frontend dockercile for optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
Suraj-kumar00 committed Jan 27, 2025
1 parent 940b5b8 commit 666da1d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions front-end-nextjs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ COPY --from=builder /app/public ./public
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package.json ./package.json

# Create non-root user
RUN adduser -S -u 1001 nextjs && \
chown -R nextjs:node /app/.next
USER nextjs

# Set environment variables
EXPOSE 3000

Expand Down

0 comments on commit 666da1d

Please sign in to comment.