1
0
Fork 0

Update Dockerfile
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
colin 2023-12-12 17:04:36 +00:00
parent 8d0b77a98a
commit fa877872f3
1 changed files with 3 additions and 3 deletions

View File

@ -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"
# 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
# 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
# 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
# Use the script as the entrypoint
ENTRYPOINT ["/entrypoint.sh"]
ENTRYPOINT ["/docker-entrypoint.sh"]