Change docker build to use alpine directly, with PHP and ldap module

This commit is contained in:
Deon George
2023-01-30 22:37:35 +11:00
parent 482d9670e3
commit 637a0cd0f4
3 changed files with 11 additions and 11 deletions

10
docker/Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM registry.dege.au/leenooks/php:8.1-fpm-alpine-ldap
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}/*