Explorar o código

fix(demo): recreate access.log and error.log as regular files

Jacky hai 10 meses
pai
achega
9aac7c2e4c
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      demo.Dockerfile

+ 6 - 0
demo.Dockerfile

@@ -23,3 +23,9 @@ COPY resources/docker/nginx-ui.conf /etc/nginx/conf.d/nginx-ui.conf
 COPY nginx-ui-$TARGETOS-$TARGETARCH$TARGETVARIANT/nginx-ui /usr/local/bin/nginx-ui
 
 RUN rm -f /etc/nginx/conf.d/default.conf
+
+# recreate access.log and error.log
+RUN rm -f /var/log/nginx/access.log && \
+    touch /var/log/nginx/access.log && \
+    rm -f /var/log/nginx/error.log && \
+    touch /var/log/nginx/error.log