Skip to content

Commit b36cdfa

Browse files
authored
Merge pull request #1 from tiagodevweb/master
2 parents 52127ae + f2d20dc commit b36cdfa

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
FROM alpine:3.7
1+
ARG VERSION_ALPINE=3.7
2+
FROM alpine:${VERSION_ALPINE}
23

34
# Create user
45
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
1718
RUN apk add --no-cache --update \
1819
gettext \
1920
nginx && \
20-
mkdir -p /var/cache/nginx && \
21+
mkdir -p /var/cache/nginx /var/tmp/nginx && \
2122
chown -R www-data:www-data /var/cache/nginx && \
2223
chown -R www-data:www-data /var/lib/nginx && \
2324
chown -R www-data:www-data /var/tmp/nginx

examples/docker-compose.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ version: '3.6'
33
services:
44
builder:
55
image: lslio/nginx-php-fpm
6-
build: ../
6+
build:
7+
context: ../
8+
args:
9+
VERSION_ALPINE: 3.13.7
710
entrypoint: /bin/true
811

912
example:

0 commit comments

Comments
 (0)