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
|
2022-07-27 10:04:56 +00:00
|
|
|
|
2022-07-27 10:13:34 +00:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y --no-install-recommends \
|
|
|
|
curl \
|
|
|
|
ca-certificates \
|
|
|
|
gnupg2
|
2022-07-27 10:04:56 +00:00
|
|
|
|
|
|
|
# Apache
|
|
|
|
|
2022-07-27 10:13:34 +00:00
|
|
|
RUN apt-get install -y --no-install-recommends \
|
2020-01-20 21:26:15 +00:00
|
|
|
apache2 \
|
|
|
|
libapache2-mod-php \
|
|
|
|
&& . /etc/apache2/envvars \
|
2020-07-03 12:03:57 +00:00
|
|
|
&& 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"
|
2020-01-20 21:26:15 +00:00
|
|
|
|
2020-01-21 08:00:03 +00:00
|
|
|
RUN a2dissite 000-default
|
|
|
|
|
2022-07-27 10:13:34 +00:00
|
|
|
# NodeJs
|
|
|
|
|
|
|
|
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash - \
|
|
|
|
&& apt-get install -y --no-install-recommends nodejs
|
|
|
|
|
2022-07-27 10:04:56 +00:00
|
|
|
# Hedera
|
|
|
|
|
2022-07-27 10:13:34 +00:00
|
|
|
RUN curl -sL https://apt.verdnatura.es/conf/verdnatura.gpg | apt-key add - \
|
2022-07-27 10:04:56 +00:00
|
|
|
&& echo "deb http://apt.verdnatura.es/ jessie main" \
|
|
|
|
> /etc/apt/sources.list.d/vn.list \
|
2022-07-27 10:13:34 +00:00
|
|
|
&& apt-get update
|
2022-07-27 10:04:56 +00:00
|
|
|
|
2022-07-27 10:13:34 +00:00
|
|
|
RUN apt-get install -y --no-install-recommends \
|
2020-01-22 11:01:38 +00:00
|
|
|
php-image-text \
|
|
|
|
php-text-captcha \
|
2022-04-13 11:31:52 +00:00
|
|
|
php-apcu \
|
2022-04-11 13:47:47 +00:00
|
|
|
php-zip \
|
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
|
2022-07-27 10:06:53 +00:00
|
|
|
ARG VERSION
|
|
|
|
ENV VERSION $VERSION
|
2022-05-05 09:05:05 +00:00
|
|
|
RUN echo $VERSION
|
2022-07-27 10:06:53 +00:00
|
|
|
|
2022-07-27 10:13:34 +00:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y php-vn-lib hedera-web=$VERSION \
|
2020-01-20 21:26:15 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
CMD ["apachectl", "-D", "FOREGROUND"]
|