-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
656d82f
commit 55e2bf0
Showing
2 changed files
with
13 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
FROM ghcr.io/openconext/openconext-basecontainers/php72-apache2:latest | ||
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 | ||
ARG APP_VERSION | ||
ENV GATEWAY_VERSION=$APP_VERSION | ||
ADD output.tar /var/www/html/ | ||
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/samlstepupproviders_parameters.yaml.dist config/openconext/samlstepupproviders_parameters.yaml | ||
|
||
# Add the config files for Apache2 | ||
RUN rm -rf /etc/apache2/sites-enabled/* | ||
COPY ./docker/conf/gateway-apache2.conf /etc/apache2/sites-enabled/gateway.conf | ||
RUN bin/console --env=test cache:clear | ||
RUN rm -rf /var/www/html/var/cache/test && chown -R www-data /var/www/html/var | ||
RUN rm -rf /var/www/html/var/cache/prod &&\ | ||
mkdir -p /var/www/html/var/cache &&\ | ||
chown -R www-data /var/www/html/var | ||
|
||
EXPOSE 80 | ||
CMD ["apache2-foreground"] |