From e10ca8f18a473a8568692aa4b5cee554083cf3d4 Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 11 Jul 2024 22:03:19 +1000 Subject: [PATCH] Updated Dockerfile to be consistent with other implementations --- docker/Dockerfile | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 965b6c6..addba3a 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -8,13 +8,12 @@ RUN apk add zerotier-one -X http://dl-cdn.alpinelinux.org/alpine/v3.17/community COPY init-container /sbin/ COPY . /var/www/html/ -RUN mkdir -p ${COMPOSER_HOME} && \ - ([ -r auth.json ] && mv auth.json ${COMPOSER_HOME}) || true && \ - touch .composer.refresh && \ - mv .env.example .env && \ - apk add --no-cache git && \ - FORCE_PERMS=1 NGINX_START=FALSE /sbin/init && \ - apk del --no-cache git && \ - chmod +x /var/www/html/artisan /var/www/html/init-php.sh && \ - touch .migrate && \ - rm -rf ${COMPOSER_HOME}/* +RUN mkdir -p ${COMPOSER_HOME} \ + && ([ -r auth.json ] && mv auth.json ${COMPOSER_HOME}) || true \ + && touch .composer.refresh \ + && mv .env.example .env \ + && apk add --no-cache git \ + && FORCE_PERMS=1 NGINX_START=FALSE /sbin/init \ + && apk del --no-cache git \ + && chmod +x /var/www/html/artisan /var/www/html/init-php.sh \ + && rm -rf ${COMPOSER_HOME}/* .git* composer.lock