hedera-web/Dockerfile

44 lines
1.3 KiB
Docker
Raw Normal View History

2020-01-22 18:47:14 +00:00
# Not using buster because of bug: https://bugs.php.net/bug.php?id=78870
FROM debian:stretch-slim
2020-01-20 21:26:15 +00:00
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
ca-certificates \
gnupg2 \
&& curl -sL https://apt.verdnatura.es/conf/verdnatura.gpg | apt-key add - \
&& echo "deb http://apt.verdnatura.es/ jessie main" \
> /etc/apt/sources.list.d/vn.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
apache2 \
libapache2-mod-php \
&& rm -rf /var/lib/apt/lists/* \
&& . /etc/apache2/envvars \
&& ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log" \
&& ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log" \
&& ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
&& rm -rf /var/lib/apt/lists/*
2020-01-21 08:00:03 +00:00
RUN a2dissite 000-default
2020-01-22 18:47:14 +00:00
# Precaching dependencies
RUN apt-get update \
2020-01-22 11:01:38 +00:00
&& apt-get install -y --no-install-recommends \
php-image-text \
php-text-captcha \
2020-01-22 19:03:10 +00:00
php-apcu-bc \
2020-01-22 20:48:37 +00:00
hedera-web \
cron
2020-01-22 08:35:49 +00:00
2020-01-21 08:56:35 +00:00
ARG BUILD_ID=unknown
2020-01-20 21:26:15 +00:00
RUN apt-get update \
&& apt-get install -y hedera-web \
&& rm -rf /var/lib/apt/lists/*
CMD ["apachectl", "-D", "FOREGROUND"]