mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
fix(demo): recreate access.log and error.log as regular files
This commit is contained in:
parent
65befe282b
commit
9aac7c2e4c
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue