fix: install curl in Docker image for healthcheck

The HEALTHCHECK command in the Dockerfile was using curl, but curl is not
available by default in the nginx:stable-alpine base image. This caused
the health checks to always fail.
This commit adds curl installation using apk to ensure the healthcheck
works correctly.
This commit is contained in:
Gurjit Singh 2025-12-03 09:37:23 +01:00
parent f5a56c8dd2
commit e1f9f64057
1 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,8 @@ RUN bun run build
FROM nginx:stable-alpine FROM nginx:stable-alpine
RUN apk add --no-cache curl
EXPOSE 80/tcp EXPOSE 80/tcp
COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf