From aeb3c72c0437a7c01d4c2afda0f94607dac2a6e2 Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 13 Feb 2025 21:51:16 +1100 Subject: [PATCH] Add PHP_DIR to Dockerfile for use children Dockerfiles and environment --- docker/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index d7b8cb4..d0dfa31 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -10,6 +10,7 @@ RUN if [ -n ${HTTP_PROXY} ] ; then sed -i -e s'/https/http/' /etc/apk/repositori RUN apk add --no-cache bash msmtp memcached ENV SITE_USER=www-data +ENV PHP_DIR=/app # Additional extensions: RUN install-php-extensions \ @@ -43,7 +44,7 @@ COPY docker/init-docker /sbin/init-docker RUN chmod 550 /sbin/init-docker && chown ${SITE_USER}:0 /sbin/init-docker && chown -R ${SITE_USER}:0 ${XDG_DATA_HOME} ${XDG_CONFIG_HOME} VOLUME [ "/var/cache/composer" ] -WORKDIR /app +WORKDIR ${PHP_DIR} USER ${SITE_USER} # Control which port to open