2020-01-03 20:07:42 +08:00
|
|
|
FROM webdevops/apache:ubuntu-18.04
|
2016-07-27 19:35:58 -05:00
|
|
|
|
2018-03-16 17:34:47 +08:00
|
|
|
LABEL maintainer="Eric Pfeiffer <computerfr33k@users.noreply.github.com>"
|
2016-07-27 19:35:58 -05:00
|
|
|
|
2021-03-16 10:05:46 -03:00
|
|
|
ARG DOCUMENT_ROOT=/var/www/
|
2017-08-04 00:50:20 +03:00
|
|
|
ARG PHP_UPSTREAM_CONTAINER=php-fpm
|
|
|
|
ARG PHP_UPSTREAM_PORT=9000
|
2017-09-18 15:24:48 +02:00
|
|
|
ARG PHP_UPSTREAM_TIMEOUT=60
|
2021-03-16 10:05:46 -03:00
|
|
|
ARG APACHE_INSTALL_HTTP2=false
|
2016-07-27 19:35:58 -05:00
|
|
|
|
2017-08-04 00:50:20 +03:00
|
|
|
ENV WEB_PHP_SOCKET=${PHP_UPSTREAM_CONTAINER}:${PHP_UPSTREAM_PORT}
|
2018-03-18 17:34:15 +08:00
|
|
|
ENV WEB_DOCUMENT_ROOT=${DOCUMENT_ROOT}
|
2021-03-16 10:05:46 -03:00
|
|
|
ENV APACHE_HTTP2=${APACHE_INSTALL_HTTP2}
|
2017-09-18 15:24:48 +02:00
|
|
|
ENV WEB_PHP_TIMEOUT=${PHP_UPSTREAM_TIMEOUT}
|
|
|
|
|
2019-06-29 01:34:49 -03:00
|
|
|
ENV LOG_STDOUT=/var/log/apache2/access.log
|
|
|
|
|
|
|
|
ENV LOG_STDERR=/var/log/apache2/error.log
|
|
|
|
|
2016-07-27 19:35:58 -05:00
|
|
|
EXPOSE 80 443
|
|
|
|
|
2017-08-04 00:51:20 +03:00
|
|
|
WORKDIR /var/www/
|
2016-07-27 19:35:58 -05:00
|
|
|
|
2017-05-01 12:41:55 +02:00
|
|
|
COPY vhost.conf /etc/apache2/sites-enabled/vhost.conf
|
2017-03-09 10:26:47 +08:00
|
|
|
|
2021-03-16 10:05:46 -03:00
|
|
|
ADD ./startup.sh /opt/startup.sh
|
2020-09-03 15:46:24 +07:00
|
|
|
|
2016-07-27 19:35:58 -05:00
|
|
|
ENTRYPOINT ["/opt/docker/bin/entrypoint.sh"]
|
|
|
|
|
2021-03-16 10:05:46 -03:00
|
|
|
CMD ["/bin/bash", "/opt/startup.sh"]
|
|
|
|
|
|
|
|
EXPOSE 80 443
|