Skip to content

Commit f0e9ec0

Browse files
committed
Enhance file permission settings in Docker image by including /config and /data directories. This update ensures proper ownership is applied to these directories, improving security and consistency in the frankenphp variation.
1 parent cf1c66f commit f0e9ec0

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎src/common/usr/local/bin/docker-php-serversideup-set-file-permissions‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ case "$OS" in
212212
/composer
213213
/var/www
214214
/etc/ssl/private
215+
/config
216+
/data
215217
$PHP_INI_DIR/conf.d/zzz-serversideup-docker-php-debug.ini"
216218
;;
217219
*)
@@ -276,6 +278,8 @@ case "$OS" in
276278
/composer
277279
/var/www
278280
/etc/ssl/private
281+
/config
282+
/data
279283
$PHP_INI_DIR/conf.d/zzz-serversideup-docker-php-debug.ini"
280284
;;
281285
*)

‎src/variations/frankenphp/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ RUN set -eux; \
4040
\
4141
# Make composer cache directory
4242
mkdir -p "${COMPOSER_HOME}"; \
43-
chown -R www-data:www-data "${COMPOSER_HOME}";
43+
docker-php-serversideup-set-file-permissions --owner www-data:www-data
4444

4545
####################
4646
# Go Image

0 commit comments

Comments
 (0)