-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
36 lines (27 loc) · 1.15 KB
/
Dockerfile
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
36
FROM debian:stretch-slim
ARG TINI_VERSION="v0.18.0"
ARG PHP_VERSION
##
## Set the path to the TLS certificate to use. Uses the "snake-oil" certificate by default.
##
## See
## - https://askubuntu.com/questions/396120/what-is-the-purpose-of-the-ssl-cert-snakeoil-key
##
ENV SERVER_TLS_CERTIFICATE_PATH="/etc/ssl/certs/ssl-cert-snakeoil.pem"
ENV SERVER_TLS_CERTIFICATE_KEY_PATH="/etc/ssl/private/ssl-cert-snakeoil.key"
##
## Set some diagnostic information such that logs accurately reflect where this is coming from
##
ENV SERVER_ENVIRONMENT="production"
ENV SERVER_SERVICE="apache2"
COPY fs/opt/provision/provision.sh /opt/provision/provision.sh
RUN /opt/provision/provision.sh
# These should be overridden by your runtime environment
ENV SERVER_NAME www.example.com
ENV SERVER_ADMIN webmaster@localhost
ENV DOCUMENT_ROOT /var/www/html
# Update the default vhost to one that listens for the environment variables.
ADD fs/etc/apache2/sites-enabled/000-default.conf /etc/apache2/sites-enabled/000-default.conf
ADD fs/etc/apache2/conf-enabled/* /etc/apache2/conf-enabled/
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["/usr/sbin/apache2ctl", "-DFOREGROUND"]