Skip to content

Commit

Permalink
Ensure nginx cache directory is created [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Oct 31, 2021
1 parent cee1837 commit 82771fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ RUN addgroup -g 101 -S nginx \
# Bring in tzdata so users could set the timezones through the environment
# variables
&& apk add --no-cache tzdata \
# Ensure nginx cache directory exist with the correct permissions
&& mkdir -m 700 /var/cache/nginx \
# Forward request and error logs to docker log collector
&& ln -sf /dev/stdout /var/log/nginx/weserv-access.log \
&& ln -sf /dev/stderr /var/log/nginx/weserv-error.log \
Expand Down

0 comments on commit 82771fc

Please sign in to comment.