Update Dockerfile
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
8d0b77a98a
commit
fa877872f3
|
@ -10,11 +10,11 @@ ENV BACKEND_UDP_PORT=22
|
||||||
ENV ALLOWED_IPS="10.0.0.0/8 172.16.0.0/12 192.168.0.0/16"
|
ENV ALLOWED_IPS="10.0.0.0/8 172.16.0.0/12 192.168.0.0/16"
|
||||||
|
|
||||||
# Copy the script and configuration template into the container
|
# Copy the script and configuration template into the container
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
||||||
COPY nginx.conf.template /etc/nginx/nginx.conf.template
|
COPY nginx.conf.template /etc/nginx/nginx.conf.template
|
||||||
|
|
||||||
# Make the script executable
|
# Make the script executable
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /docker-entrypoint.sh
|
||||||
|
|
||||||
# HEALTHCHECK instruction using curl to check the health of the NGINX server
|
# HEALTHCHECK instruction using curl to check the health of the NGINX server
|
||||||
# Install curl, then set up the health check
|
# Install curl, then set up the health check
|
||||||
|
@ -23,4 +23,4 @@ HEALTHCHECK --interval=30s --timeout=3s --retries=3 \
|
||||||
CMD curl -f http://localhost:8080/healthz || exit 1
|
CMD curl -f http://localhost:8080/healthz || exit 1
|
||||||
|
|
||||||
# Use the script as the entrypoint
|
# Use the script as the entrypoint
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||||
|
|
Loading…
Reference in New Issue