File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
ARG debian_version
2
2
FROM debian:${debian_version}
3
3
4
+ ARG php_version
4
5
ARG userid=3000
5
6
ARG groupid=3000
6
7
@@ -73,6 +74,9 @@ COPY etc/supervisord.d /etc/supervisord.d
73
74
COPY etc/php-fpm/php-fpm.conf /etc/php-fpm.conf
74
75
COPY etc/php.d/60-craftcms.ini /etc/php.d/60-craftcms.ini
75
76
77
+ # set a friendly path for php-fpm that does not have the version
78
+ RUN update-alternatives --install /usr/sbin/php-fpm php-fpm /usr/sbin/php-fpm${php_version} 1
79
+
76
80
# set the sockets and pid files to be writable by the appuser
77
81
RUN mkdir -p /var/run/php && touch /var/run/php/php-fpm.sock && chown -R appuser:appgroup /var/run/php
78
82
Original file line number Diff line number Diff line change 1
1
[program:php-fpm]
2
- command =/usr/sbin/php-fpm8.2 --fpm-config /etc/php-fpm.conf
2
+ command =/usr/sbin/php-fpm --fpm-config /etc/php-fpm.conf
3
3
user =appuser
4
4
stdout_logfile =/dev/stdout
5
5
stdout_logfile_maxbytes =0
You can’t perform that action at this time.
0 commit comments