chore(docker): Disable default port exposure and health check in Dockerfile

- Comment out default port exposure (EXPOSE 8080)
- Disable default health check command
- Prepare Dockerfile for more flexible container configuration
- Allows for custom port mapping and health check strategies at runtime
This commit is contained in:
ats-tech25 2025-11-07 22:17:23 +00:00
parent 748c30ab8c
commit baa7747583

View File

@ -37,12 +37,12 @@ COPY --from=builder /app/cli .
# Copy templates if they exist
COPY --from=builder /app/internal/templates ./internal/templates
# Expose port (adjust if needed)
EXPOSE 8080
# # Expose port (adjust if needed)
# EXPOSE 8080
# Health check - give more time for startup
HEALTHCHECK --interval=30s --timeout=3s --start-period=40s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:8080/health || exit 1
# # Health check - give more time for startup
# HEALTHCHECK --interval=30s --timeout=3s --start-period=40s --retries=3 \
# CMD wget --no-verbose --tries=1 --spider http://localhost:8080/health || exit 1
# Run the server
CMD ["./server"]