Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
FROM php-server:7.4-alpine
# Edit here to use a different location
ENV WWW_ROOT /var/www
ENV APP_ROOT ${WWW_ROOT}/app
ENV NGINX_DOC_ROOT ${APP_ROOT}/public
# Uncomment and edit if using different paths
# RUN mkdir -p ${NGINX_DOC_ROOT}
COPY ./app ${APP_ROOT}
# Adjust permissions for new files and subdirs
RUN chown -R www-data:www-data ${APP_ROOT}
# Use unprivileged user to install dependencies
WORKDIR ${APP_ROOT}
USER www-data
RUN composer install --no-interaction
# Back to root user for starting daemons
USER root