File tree Expand file tree Collapse file tree 6 files changed +21
-8
lines changed Expand file tree Collapse file tree 6 files changed +21
-8
lines changed Original file line number Diff line number Diff line change 1
1
FROM alpine:3.5
2
2
LABEL Maintainer=
"Tim de Pater <[email protected] >" \
3
- Description="Lightweight container with Nginx 1.10 & PHP-FPM 7.0 based on Alpine Linux."
3
+ Description="Lightweight container with Nginx 1.10 & PHP-FPM 7.1 based on Alpine Linux."
4
4
5
- # Install packages
6
- RUN apk --no-cache add php7 php7-fpm nginx supervisor --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/
5
+ # Install packages from testing repo's
6
+ RUN apk --no-cache add php7 php7-fpm php7-mysqli php7-json php7-openssl php7-curl \
7
+ php7-zlib php7-xml php7-phar php7-intl php7-dom php7-xmlreader php7-ctype \
8
+ php7-mbstring php7-gd nginx \
9
+ --repository http://dl-cdn.alpinelinux.org/alpine/edge/main/ \
10
+ --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/
11
+
12
+ # Install packages from stable repo's
13
+ RUN apk --no-cache add supervisor curl
7
14
8
15
# Configure nginx
9
16
COPY config/nginx.conf /etc/nginx/nginx.conf
Original file line number Diff line number Diff line change 1
- Docker PHP-FPM 7.0 & Nginx 1.10 on Alpine Linux
1
+ Docker PHP-FPM 7.1 & Nginx 1.10 on Alpine Linux
2
2
==============================================
3
- Example PHP-FPM 7.0 & Nginx 1.10 setup for Docker, build on [ Alpine Linux] ( http://www.alpinelinux.org/ ) .
3
+ Example PHP-FPM 7.1 & Nginx 1.10 setup for Docker, build on [ Alpine Linux] ( http://www.alpinelinux.org/ ) .
4
4
The image is only +/- 60MB large.
5
5
6
6
10
10
-----
11
11
Start the Docker containers:
12
12
13
- sudo docker run -p 80:80 trafex/alpine-nginx-php7
13
+ docker run -p 80:80 trafex/alpine-nginx-php7
14
14
15
15
See the PHP info on http://localhost , or the static html page on http://localhost/test.html
16
16
Original file line number Diff line number Diff line change @@ -26,3 +26,6 @@ pm.process_idle_timeout = 10s;
26
26
; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
27
27
; Default Value: 0
28
28
pm.max_requests = 500
29
+
30
+ ; Make sure the FPM workers can reach the environment variables for configuration
31
+ clear_env = no
Original file line number Diff line number Diff line change 65
65
deny all ;
66
66
}
67
67
}
68
- include conf.d/*.conf;
69
68
}
Original file line number Diff line number Diff line change 1
1
[Date]
2
- date.timezone =" Europe/Amsterdam "
2
+ date.timezone =" UTC "
Original file line number Diff line number Diff line change @@ -7,10 +7,14 @@ stdout_logfile=/dev/stdout
7
7
stdout_logfile_maxbytes=0
8
8
stderr_logfile=/dev/stderr
9
9
stderr_logfile_maxbytes=0
10
+ autorestart=false
11
+ startretries=0
10
12
11
13
[program:nginx]
12
14
command=nginx -g 'daemon off;'
13
15
stdout_logfile=/dev/stdout
14
16
stdout_logfile_maxbytes=0
15
17
stderr_logfile=/dev/stderr
16
18
stderr_logfile_maxbytes=0
19
+ autorestart=false
20
+ startretries=0
You can’t perform that action at this time.
0 commit comments