-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathDockerfile.prod
More file actions
35 lines (29 loc) · 986 Bytes
/
Dockerfile.prod
File metadata and controls
35 lines (29 loc) · 986 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
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/ && \
rm -rf /tmp/*.tar.bz2
# Add the config files for Apache2
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/dev/parameters.yml
HEALTHCHECK \
--start-period=30s \
--start-interval=1s \
--interval=10s \
--timeout=1s \
--retries=20 \
CMD curl --fail -s -o /dev/null -w "%{http_code}" http://localhost/internal/health
# Set the default workdir
EXPOSE 80
CMD ["apache2-foreground"]