Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion docker/Dockerfile.prod
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
FROM ghcr.io/openconext/openconext-basecontainers/php82-apache2:latest

ARG APP_VERSION
ARG GIT_SHA
ARG GIT_COMMIT_TIME

ENV OPENCONEXT_APP_VERSION=${APP_VERSION}
ENV OPENCONEXT_GIT_SHA=${GIT_SHA}
ENV OPENCONEXT_COMMIT_DATE=${GIT_COMMIT_TIME}

ENV APP_ENV=dev
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that correct? The filename is Dockerfile.prod but it sets APP_ENV=dev and loads the dev parameter file?

ENV APP_SECRET=changeme901234567890123456789012
ENV APP_DEBUG=0

WORKDIR /var/www/html
COPY *.tar.bz2 /tmp/
RUN tar -xvjf /tmp/*.tar.bz2 -C /var/www/html/ && \
Expand All @@ -14,7 +20,7 @@ RUN tar -xvjf /tmp/*.tar.bz2 -C /var/www/html/ && \
RUN rm -rf /etc/apache2/sites-enabled/*
COPY ./docker/conf/engine.conf /etc/apache2/sites-enabled/engine.conf
# Instantiate devconf config
RUN cp config/packages/parameters.yml.dist config/packages/parameters.yml
RUN cp config/packages/parameters.yml.dist config/packages/dev/parameters.yml

HEALTHCHECK \
--start-period=30s \
Expand Down