改名
This commit is contained in:
+4
-1
@@ -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;"]
|
||||
|
||||
Reference in New Issue
Block a user