Skip to content

Commit

Permalink
Docker test: Use busybox image to unzip
Browse files Browse the repository at this point in the history
  • Loading branch information
quartje committed Jan 9, 2024
1 parent 6291034 commit 7c48465
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docker/Dockerfile.test
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
FROM ghcr.io/openconext/openconext-basecontainers/php82-apache2:latest
ADD output.tar /var/www/html/
FROM busybox AS unpack
WORKDIR /unpack
COPY output.zip /unpack
RUN unzip /unpack/output.zip

FROM ghcr.io/openconext/openconext-basecontainers/php82-apache2:latest
# Set the default workdir
WORKDIR /var/www/html
# Copy the files unpacked in stage unpack
COPY --from=unpack /unpack/ /var/www/html/
# Add the application configuration files
COPY config/openconext/parameters.yaml.dist config/openconext/parameters.yaml
COPY config/openconext/institutions.yaml.dist config/openconext/institutions.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/*
RUN rm -rf /etc/apache2/sites-enabled/* && rm -rf /var/www/html/output.zip
COPY ./docker/conf/azuremfa-apache2.conf /etc/apache2/sites-enabled/azuremfa.conf
RUN rm -rf /var/www/html/var/cache/prod && chown -R www-data /var/www/html/var
EXPOSE 80
Expand Down

0 comments on commit 7c48465

Please sign in to comment.