Skip to content

Commit 7e2bb3a

Browse files
chore(docker): remove non-root user creation from Dockerfile.prod to streamline the build process
1 parent 374409a commit 7e2bb3a

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

docker/Dockerfile.prod

-10
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,6 @@ RUN pnpm --filter inbox-zero-ai exec -- prisma generate
5656
# Build the Next.js application
5757
RUN pnpm --filter inbox-zero-ai exec -- next build
5858

59-
# Create non-root user for security
60-
# Running as root during build, create user for runtime
61-
RUN addgroup --system --gid 1001 nodejs
62-
RUN adduser --system --uid 1001 nextjs
63-
64-
# No need to copy files, already present
65-
66-
# Switch to non-root user for runtime
67-
USER nextjs
68-
6959
# Expose port 3000
7060
EXPOSE 3000
7161

0 commit comments

Comments
 (0)