Skip to content

Commit

Permalink
Docker: Make the docker image php82 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
quartje committed Jan 22, 2024
1 parent c481212 commit 60d24b4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docker/Dockerfile.prod
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
FROM ghcr.io/openconext/openconext-basecontainers/php72-apache2:latest AS php-build
FROM ghcr.io/openconext/openconext-basecontainers/php82-apache2:latest
# 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/packages/prod/monolog.yaml.docker config/packages/prod/monolog.yaml
COPY config/openconext/parameters.yaml.dist config/openconext/parameters.yaml

# TIQR needs some assests to be installed
RUN bin/console assets:install
RUN bin/console assets:install --env=prod

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

COPY ./docker/conf/tiqr-apache2.conf /etc/apache2/sites-enabled/tiqr.conf
RUN rm -rf /var/www/html/var/cache/prod && chown -R www-data /var/www/html/var
EXPOSE 80

# Set the default workdir
WORKDIR /var/www/html

CMD ["apache2-foreground"]

0 comments on commit 60d24b4

Please sign in to comment.