This commit is contained in:
root
2026-08-14 17:11:55 +08:00
parent e64960e521
commit 1ce8efb39e
2 changed files with 60 additions and 1 deletions
+4 -1
View File
@@ -60,6 +60,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
COPY --from=build /usr/local/nginx /usr/local/nginx
# Rename the executable to "gateway"
RUN mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/gateway
# Built-in main nginx config (project root nginx.conf)
COPY nginx.conf /usr/local/nginx/conf/nginx.conf
@@ -70,4 +73,4 @@ RUN printf '# empty\n' > /usr/local/nginx/conf/man/http/.keep \
EXPOSE 80 443 8443
CMD ["/usr/local/nginx/sbin/nginx", "-g", "daemon off;"]
CMD ["/usr/local/nginx/sbin/gateway", "-g", "daemon off;"]