Updated docker base image and synchronise consistent docker build/test

This commit is contained in:
2023-03-15 15:45:37 +11:00
parent a6f01d0864
commit 10931bd156
4 changed files with 52 additions and 59 deletions

View File

@@ -1,13 +1,12 @@
FROM registry.leenooks.net/leenooks/php:8.0-fpm-latest
FROM registry.dege.au/leenooks/php:8.1-fpm-alpine-mysql
COPY . /var/www/html/
RUN export COMPOSER_HOME=/var/www/.composer \
&& mkdir -p /var/www/.composer \
&& ([ -r auth.json ] && mv auth.json /var/www/.composer/) || true \
RUN mkdir -p ${COMPOSER_HOME} \
&& ([ -r auth.json ] && mv auth.json ${COMPOSER_HOME}) || true \
&& touch .composer.refresh \
&& mv .env.example .env \
&& FORCE_PERMS=1 NGINX_START=FALSE /sbin/init \
&& chmod +x /var/www/html/artisan \
&& /var/www/html/artisan storage:link \
&& rm -rf /var/www/.composer
&& rm -rf ${COMPOSER_HOME}/* .git* composer.lock