FROM gitea.dege.au/docker/php:8.4-pgsql COPY . /var/www/html/ USER root RUN mkdir -p ${COMPOSER_HOME} \ && ([ -r auth.json ] && mv auth.json ${COMPOSER_HOME}) || true \ && touch .composer.refresh \ && mv .env.example .env \ && FORCE_PERMS=1 BUILD=1 /sbin/init-docker \ && rm -rf ${COMPOSER_HOME}/* composer.lock USER ${SITE_USER}