0
1
Fork 0
hedera-web-mindshore/Dockerfile

53 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
2022-10-10 10:51:34 +00:00
2020-01-20 21:26:15 +00:00
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
ca-certificates \
2022-10-10 10:51:34 +00:00
gnupg2
# Apache
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-10-10 10:51:34 +00:00
# NodeJs
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash - \
&& apt-get install -y --no-install-recommends nodejs
# Hedera
RUN curl -sL https://apt.verdnatura.es/conf/verdnatura.gpg | apt-key add - \
2022-10-15 12:42:26 +00:00
&& echo "deb http://apt.verdnatura.es/ stretch main" \
2022-10-10 10:51:34 +00:00
> /etc/apt/sources.list.d/vn.list \
2022-10-15 12:56:25 +00:00
&& apt-get update \
&& apt-get install -y --no-install-recommends \
2023-01-16 12:59:11 +00:00
php-apcu \
2020-01-22 11:01:38 +00:00
php-image-text \
php-text-captcha \
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-10-10 10:51:34 +00:00
ARG VERSION
ENV VERSION $VERSION
2022-05-05 09:05:05 +00:00
RUN echo $VERSION
2022-10-10 10:51:34 +00:00
2020-01-20 21:26:15 +00:00
RUN apt-get update \
2022-05-05 09:05:05 +00:00
&& 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"]