Skip to content

Commit

Permalink
Docker: Remove special monolog config
Browse files Browse the repository at this point in the history
  • Loading branch information
quartje committed Jan 11, 2024
1 parent b28ddc1 commit 3300fe1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docker/Dockerfile.prod
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
FROM ghcr.io/openconext/openconext-basecontainers/php82-apache2:latest AS php-build

# Set the default workdir
WORKDIR /var/www/html
COPY *.tar.bz2 /tmp/
RUN tar -xvjf /tmp/*.tar.bz2 -C /var/www/html/ && \
rm -rf /tmp/*.tar.bz2

# Add the application configuration files
COPY config/legacy/parameters.yaml.dist config/legacy/parameters.yaml
COPY config/legacy/samlstepupproviders_parameters.yaml.dist config/legacy/samlstepupproviders_parameters.yaml
COPY config/packages/prod/monolog.yaml.docker config/packages/prod/monolog.yaml

# Add the config files for Apache2
RUN rm -rf /etc/apache2/sites-enabled/*
COPY ./docker/conf/apache2.conf /etc/apache2/sites-enabled/apache2.conf
RUN rm -rf /var/www/html/var/cache/prod && chown -R www-data /var/www/html/var

# Set the default workdir
WORKDIR /var/www/html
EXPOSE 80
ENTRYPOINT ["apache2-foreground"]

0 comments on commit 3300fe1

Please sign in to comment.