Added docker build configuration

This commit is contained in:
2023-03-03 10:36:19 +11:00
parent 32a75cb140
commit a9feaf0a84
3 changed files with 51 additions and 0 deletions

10
docker/Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM registry.dege.au/leenooks/php:8.1-fpm-alpine-pgsql
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 && \
FORCE_PERMS=1 NGINX_START=FALSE /sbin/init && \
rm -rf ${COMPOSER_HOME}/* .git* composer.lock