Skip to content

Commit

Permalink
fix(demo): recreate access.log and error.log as regular files
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJacky committed Jun 18, 2024
1 parent 65befe2 commit 9aac7c2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions demo.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9aac7c2

Please sign in to comment.