Skip to content

Commit eb4fd60

Browse files
committed
changed docker file and removed extra commands
1 parent aca3871 commit eb4fd60

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

Dockerfile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,10 @@ RUN bun run prisma:generate
2020
# Copy the rest of your application code
2121
COPY . .
2222

23-
# Create a non-root user for security
24-
RUN addgroup --system --gid 1001 nodejs
25-
RUN adduser --system --uid 1001 bun
26-
USER bun
2723

2824
# Expose the port
2925
EXPOSE 8080
3026

31-
# Health check
32-
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
33-
CMD curl -f http://localhost:8080/health || exit 1
3427

3528
# Start the worker using Bun with production script
3629
CMD ["bun", "run", "start:prod"]

0 commit comments

Comments
 (0)