diff --git a/Dockerfile b/Dockerfile index 6e3d9c8..7c6265b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]