Skip to content

Commit 33d2843

Browse files
fix permissions
1 parent 4697568 commit 33d2843

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

Dockerfile

-2
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ RUN update-alternatives --install /usr/sbin/php-fpm php-fpm /usr/sbin/php-fpm${p
7979

8080
# set the sockets and pid files to be writable by the appuser
8181
RUN mkdir -p /var/run/php && touch /var/run/php/php-fpm.sock && chown -R appuser:appgroup /var/run/php
82-
8382
RUN touch /run/php-fpm.pid && chown -R appuser:appgroup /run/php-fpm.pid
84-
8583
RUN touch /run/supervisord.pid && chown -R appuser:appgroup /run/supervisord.pid
8684

8785
WORKDIR /app

Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ build:
66
docker build \
77
--build-arg php_version=${PHP_VERSION} \
88
--build-arg debian_version=${DEBIAN_VERSION} \
9-
--no-cache \
109
--progress plain \
1110
--tag ${IMAGE}:${PHP_VERSION} .
1211

1312
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}
1516

1617
sizes:
1718
@echo "Size of ${IMAGE}:"

etc/php-fpm/php-fpm.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ listen.group = appgroup
2222
; Unix user/group of processes
2323
; Note: The user is mandatory. If the group is not set, the default user's group
2424
; will be used.
25-
user = appuser
25+
; user = appuser
2626
; group = appgroup
2727

2828
; Redirect logs to stdout - FPM closes /dev/std* on startup

etc/supervisord.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[supervisord]
22
nodaemon=true
3-
logfile=/dev/null
3+
logfile=/dev/stderr
44
logfile_maxbytes=0
55
pidfile=/run/supervisord.pid
66

0 commit comments

Comments
 (0)