This commit is contained in:
2026-02-18 19:31:47 +01:00
parent c3d1dcab4c
commit 658a70f3ac
4 changed files with 8 additions and 5 deletions

View File

@@ -36,6 +36,10 @@ COPY --from=builder /app/node_modules/.prisma ./node_modules/.prisma
# Copy compiled application
COPY --from=builder /app/dist ./dist
# Run as non-root user
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
USER appuser
EXPOSE 3001
CMD ["sh", "-c", "npx prisma migrate deploy && node dist/index.js"]