Skip to content

Commit 872ea18

Browse files
committed
fix: create /var/run/php at build time instead of runtime
1 parent c663cc6 commit 872ea18

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

experimental/php8.3/apache-event-fpm/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ RUN set -eux; \
150150
touch /etc/apache2/sites-available/000-default.conf; \
151151
mkdir -p /etc/apache2/conf-enabled; \
152152
mkdir -p /etc/apache2/mpm-overrides; \
153+
mkdir -p /var/run/php; \
154+
chown www-data:www-data /var/run/php; \
153155
chown -R ${INRAGE_USER_ID}:${INRAGE_GROUP_ID} \
154156
"${PHP_INI_DIR}/conf.d" \
155157
/etc/apache2/sites-available/000-default.conf \

experimental/php8.3/apache-event-fpm/docker-entrypoint.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ process_templates() {
3838
_gotpl "msmtprc.tmpl" "/etc/msmtprc"
3939
}
4040

41-
# socket dir (runtime)
42-
mkdir -p /var/run/php
43-
chown www-data:www-data /var/run/php
44-
chmod 0755 /var/run/php
45-
4641
process_templates
4742
exec_init_scripts
4843

0 commit comments

Comments
 (0)