File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ RUN apk add --no-cache nginx
6
6
RUN ln -sf /dev/stdout /var/log/nginx/access.log
7
7
RUN ln -sf /dev/stderr /var/log/nginx/error.log
8
8
9
- RUN mkdir -p /var/cache/nginx/
9
+ RUN mkdir -p /var/cache/nginx/ /run/nginx/
10
10
RUN adduser -D -s /bin/sh -G www-data www-data
11
- RUN chown -R www-data:www-data /var/lib/nginx/tmp/ /var/cache/nginx/
12
- RUN chmod 0755 /var/ /var/lib/ /var/lib/nginx /var/cache/ /var/cache/nginx/
11
+ RUN chown -R www-data:www-data /var/lib/nginx/tmp/ /var/cache/nginx/ /run/nginx/
12
+ RUN chmod 0755 /var/ /var/lib/ /var/lib/nginx /var/cache/ /var/cache/nginx/ /run/nginx/
13
13
14
14
COPY nginx.conf /etc/nginx/nginx.conf
15
15
Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ RUN apk add --no-cache nginx
6
6
RUN ln -sf /dev/stdout /var/log/nginx/access.log
7
7
RUN ln -sf /dev/stderr /var/log/nginx/error.log
8
8
9
- RUN mkdir -p /var/cache/nginx/
9
+ RUN mkdir -p /var/cache/nginx/ /run/nginx/
10
10
RUN adduser -D -s /bin/sh -G www-data www-data
11
- RUN chown -R www-data:www-data /var/lib/nginx/tmp/ /var/cache/nginx/
12
- RUN chmod 0755 /var/ /var/lib/ /var/lib/nginx /var/cache/ /var/cache/nginx/
11
+ RUN chown -R www-data:www-data /var/lib/nginx/tmp/ /var/cache/nginx/ /run/nginx/
12
+ RUN chmod 0755 /var/ /var/lib/ /var/lib/nginx /var/cache/ /var/cache/nginx/ /run/nginx/
13
13
14
14
COPY nginx.conf /etc/nginx/nginx.conf
15
15
You can’t perform that action at this time.
0 commit comments