Replace curl healthcheck with wget
This commit is contained in:
@@ -6,11 +6,10 @@ RUN ["zola", "build"]
|
||||
FROM ghcr.io/static-web-server/static-web-server:2.40.1-alpine
|
||||
ENV SERVER_HEALTH=true
|
||||
WORKDIR /
|
||||
RUN apk --no-cache add curl
|
||||
COPY --from=zola /project/public /public
|
||||
HEALTHCHECK \
|
||||
--interval=10s \
|
||||
--timeout=5s \
|
||||
--start-period=3s \
|
||||
--retries=3 \
|
||||
CMD ["curl", "-s", "http://localhost/health"]
|
||||
CMD ["wget", "http://localhost/health", "-O", "/dev/null", "-q"]
|
||||
|
||||
Reference in New Issue
Block a user