blackbirdchess-docker-dev/apache2/Dockerfile

42 lines
1.1 KiB
Docker
Raw Permalink Normal View History

2020-01-03 13:07:42 +01:00
FROM webdevops/apache:ubuntu-18.04
2016-07-28 02:35:58 +02:00
2018-03-16 10:34:47 +01:00
LABEL maintainer="Eric Pfeiffer <computerfr33k@users.noreply.github.com>"
2016-07-28 02:35:58 +02:00
ARG DOCUMENT_ROOT=/var/www/
ARG PHP_UPSTREAM_CONTAINER=php-fpm
ARG PHP_UPSTREAM_PORT=9000
2017-09-18 15:24:48 +02:00
ARG PHP_UPSTREAM_TIMEOUT=60
ARG APACHE_INSTALL_HTTP2=false
2016-07-28 02:35:58 +02:00
ENV WEB_PHP_SOCKET=${PHP_UPSTREAM_CONTAINER}:${PHP_UPSTREAM_PORT}
ENV WEB_DOCUMENT_ROOT=${DOCUMENT_ROOT}
ENV APACHE_HTTP2=${APACHE_INSTALL_HTTP2}
2017-09-18 15:24:48 +02:00
ENV WEB_PHP_TIMEOUT=${PHP_UPSTREAM_TIMEOUT}
ENV LOG_STDOUT=/var/log/apache2/access.log
ENV LOG_STDERR=/var/log/apache2/error.log
2016-07-28 02:35:58 +02:00
EXPOSE 80 443
WORKDIR /var/www/
2016-07-28 02:35:58 +02:00
2017-05-01 12:41:55 +02:00
COPY vhost.conf /etc/apache2/sites-enabled/vhost.conf
2017-03-09 03:26:47 +01:00
ADD ./startup.sh /opt/startup.sh
2020-09-03 10:46:24 +02:00
2016-07-28 02:35:58 +02:00
ENTRYPOINT ["/opt/docker/bin/entrypoint.sh"]
CMD ["/bin/bash", "/opt/startup.sh"]
2022-10-04 18:49:08 +02:00
EXPOSE 80 443
ARG APACHE_FOR_MAC_M1=false
RUN if [ ${APACHE_FOR_MAC_M1} = true ]; then \
# Change application source from deb.debian.org to aliyun source
wget -O "/usr/local/bin/go-replace" "https://github.com/webdevops/goreplace/releases/download/1.1.2/gr-arm64-linux" && \
chmod +x "/usr/local/bin/go-replace" && \
"/usr/local/bin/go-replace" --version \
;fi