forked from verdnatura/hedera-web
33 lines
1.0 KiB
Docker
33 lines
1.0 KiB
Docker
|
FROM debian:buster-slim
|
||
|
|
||
|
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/*
|
||
|
|
||
|
RUN apt-get update \
|
||
|
&& apt-get install -y hedera-web \
|
||
|
&& rm -rf /var/lib/apt/lists/*
|
||
|
|
||
|
RUN a2dissite 000-default
|
||
|
|
||
|
CMD ["apachectl", "-D", "FOREGROUND"]
|