We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccfd68f commit de8fc6eCopy full SHA for de8fc6e
Dockerfile
@@ -1,8 +1,17 @@
1
FROM nginx:1.25.3
2
+
3
+RUN chown nginx:nginx /etc/nginx -R && \
4
+ chown nginx:nginx /var/cache/nginx -R && \
5
+ touch /var/run/nginx.pid && \
6
+ chown nginx:nginx /var/run/nginx.pid
7
8
+USER nginx
9
10
ENV NGINX_ENVSUBST_TEMPLATE_SUFFIX=.conf
11
ENV NGINX_ENVSUBST_OUTPUT_DIR=/etc/nginx
12
ENV DEBUG_MODE=false
13
COPY nginx/nginx.conf /etc/nginx/templates/nginx.conf.conf
14
15
COPY /web-build /usr/share/nginx/html
-EXPOSE 80
16
+EXPOSE 80
17
+CMD ["nginx","-g","daemon off;"]
0 commit comments