File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
- FROM alpine:3.7
1
+ ARG VERSION_ALPINE=3.7
2
+ FROM alpine:${VERSION_ALPINE}
2
3
3
4
# Create user
4
5
RUN adduser -D -u 1000 -g 1000 -s /bin/sh www-data && \
@@ -17,7 +18,7 @@ COPY --from=ochinchina/supervisord:latest /usr/local/bin/supervisord /usr/bin/su
17
18
RUN apk add --no-cache --update \
18
19
gettext \
19
20
nginx && \
20
- mkdir -p /var/cache/nginx && \
21
+ mkdir -p /var/cache/nginx /var/tmp/nginx && \
21
22
chown -R www-data:www-data /var/cache/nginx && \
22
23
chown -R www-data:www-data /var/lib/nginx && \
23
24
chown -R www-data:www-data /var/tmp/nginx
Original file line number Diff line number Diff line change @@ -3,7 +3,10 @@ version: '3.6'
3
3
services :
4
4
builder :
5
5
image : lslio/nginx-php-fpm
6
- build : ../
6
+ build :
7
+ context : ../
8
+ args :
9
+ VERSION_ALPINE : 3.13.7
7
10
entrypoint : /bin/true
8
11
9
12
example :
You can’t perform that action at this time.
0 commit comments