Fix frontend health check: Install curl in Alpine container
- Added apk add curl to frontend Dockerfile - Fixes unhealthy container status by enabling health check to work - Health check now properly tests http://localhost:806
This commit is contained in:
parent
f29ffa80f1
commit
1cbf36dc00
1 changed files with 3 additions and 0 deletions
|
|
@ -24,6 +24,9 @@ EXPOSE 806
|
||||||
# Set port environment variable
|
# Set port environment variable
|
||||||
ENV PORT=806
|
ENV PORT=806
|
||||||
|
|
||||||
|
# Install curl for health check
|
||||||
|
RUN apk add --no-cache curl
|
||||||
|
|
||||||
# Health check
|
# Health check
|
||||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||||||
CMD curl -f http://localhost:806 || exit 1
|
CMD curl -f http://localhost:806 || exit 1
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue