File tree 4 files changed +5
-6
lines changed
4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -79,9 +79,7 @@ RUN update-alternatives --install /usr/sbin/php-fpm php-fpm /usr/sbin/php-fpm${p
79
79
80
80
# set the sockets and pid files to be writable by the appuser
81
81
RUN mkdir -p /var/run/php && touch /var/run/php/php-fpm.sock && chown -R appuser:appgroup /var/run/php
82
-
83
82
RUN touch /run/php-fpm.pid && chown -R appuser:appgroup /run/php-fpm.pid
84
-
85
83
RUN touch /run/supervisord.pid && chown -R appuser:appgroup /run/supervisord.pid
86
84
87
85
WORKDIR /app
Original file line number Diff line number Diff line change 6
6
docker build \
7
7
--build-arg php_version=${PHP_VERSION} \
8
8
--build-arg debian_version=${DEBIAN_VERSION} \
9
- --no-cache \
10
9
--progress plain \
11
10
--tag ${IMAGE} :${PHP_VERSION} .
12
11
13
12
dev : build
14
- docker run --rm -it ${IMAGE} /bin/bash
13
+ docker run --rm -it ${IMAGE} :${PHP_VERSION} /bin/bash
14
+ php-fpm : build
15
+ docker run --rm -it ${IMAGE} :${PHP_VERSION}
15
16
16
17
sizes :
17
18
@echo " Size of ${IMAGE} :"
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ listen.group = appgroup
22
22
; Unix user/group of processes
23
23
; Note: The user is mandatory. If the group is not set, the default user's group
24
24
; will be used.
25
- user = appuser
25
+ ; user = appuser
26
26
; group = appgroup
27
27
28
28
; Redirect logs to stdout - FPM closes /dev/std* on startup
Original file line number Diff line number Diff line change 1
1
[supervisord]
2
2
nodaemon=true
3
- logfile=/dev/null
3
+ logfile=/dev/stderr
4
4
logfile_maxbytes=0
5
5
pidfile=/run/supervisord.pid
6
6
You can’t perform that action at this time.
0 commit comments