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 Dec 12, 2023
1 parent 320731a commit e34fb67
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docker/Dockerfile.test
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
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
ADD output.zip /var/www/html/
COPY --from=unpack /unpack/ /var/www/html/
# Add the application configuration files
RUN cp config/openconext/parameters.yaml.dist config/openconext/parameters.yaml
# Add the config files for Apache2
RUN rm -rf /etc/apache2/sites-enabled/*
RUN cp config/openconext/parameters.yaml.dist config/openconext/parameters.yaml && \
rm -rf /etc/apache2/sites-enabled/*
COPY ./docker/conf/webauthn-apache2.conf /etc/apache2/sites-enabled/webauthn.conf
RUN rm -rf /var/www/html/var/cache/prod && \
mkdir -p /var/www/html/var/ && \
Expand Down

0 comments on commit e34fb67

Please sign in to comment.