FROM gitea.dege.au/docker/php:8.4-pgsql COPY . /app 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 /tmp/opcache/* USER ${SITE_USER}