Install in /app now, not /var/www/html

This commit is contained in:
Deon George 2025-02-12 13:02:13 +11:00
parent bb9374ec01
commit 8170e81d13
2 changed files with 2 additions and 3 deletions

View File

@ -20,8 +20,7 @@ ENV SITE_USER=www-data
COPY docker/init-docker /sbin/init-docker
RUN chmod 550 /sbin/init-docker && chown ${SITE_USER}:0 /sbin/init-docker
COPY . /var/www/html/
WORKDIR /var/www/html
COPY . /app
RUN mkdir -p ${COMPOSER_HOME} \
&& ([ -r auth.json ] && mv auth.json ${COMPOSER_HOME}) || true \

View File

@ -3,7 +3,7 @@
set -e
role=${CONTAINER_ROLE:-app}
env=${APP_ENV:-production}
php=${PHP_DIR:-/var/www/html}
php=${PHP_DIR:-/app}
composer=${COMPOSER_HOME:-/var/cache/composer}
RUN_USER=$(id -u -n)