Production Docker with Apache

This commit is contained in:
2023-02-14 18:41:47 -03:00
parent cce0a118b7
commit 45069dfc00
4 changed files with 35 additions and 0 deletions

15
Prod.Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM php:8-fpm
ENV LOGVIEW_INSTALLATION_PATH /app
ENV COMPOSER_ALLOW_SUPERUSER 1
ENV APACHE_DOCUMENT_ROOT "${LOGVIEW_INSTALLATION_PATH}/app"
ENV APACHE_PUBLIC_ROOT "${LOGVIEW_INSTALLATION_PATH}/app/public"
COPY --from=composer /usr/bin/composer /usr/bin/composer
WORKDIR "${LOGVIEW_INSTALLATION_PATH}"
RUN apt-get update \
&& apt-get install -yq --no-install-recommends git \
&& rm -r /var/lib/apt/lists/* \
&& git clone http://git.provm.cl/ProVM/logview.git /app \
&& ${LOGVIEW_INSTALLATION_PATH}/install.sh