0
1
Fork 0

Deploy fixes

This commit is contained in:
Juan Ferrer 2022-07-27 12:13:34 +02:00
parent c11500b3de
commit 958b39e9be
1 changed files with 16 additions and 14 deletions

View File

@ -3,14 +3,15 @@ FROM debian:stretch-slim
ARG DEBIAN_FRONTEND=noninteractive ARG DEBIAN_FRONTEND=noninteractive
# NodeJs RUN apt-get update \
&& apt-get install -y --no-install-recommends \
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash - \ curl \
&& apt install -y --no-install-recommends nodejs ca-certificates \
gnupg2
# Apache # Apache
RUN apt install -y --no-install-recommends \ RUN apt-get install -y --no-install-recommends \
apache2 \ apache2 \
libapache2-mod-php \ libapache2-mod-php \
&& . /etc/apache2/envvars \ && . /etc/apache2/envvars \
@ -20,18 +21,19 @@ RUN apt install -y --no-install-recommends \
RUN a2dissite 000-default RUN a2dissite 000-default
# NodeJs
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash - \
&& apt-get install -y --no-install-recommends nodejs
# Hedera # Hedera
RUN apt install -y --no-install-recommends \ RUN curl -sL https://apt.verdnatura.es/conf/verdnatura.gpg | apt-key add - \
curl \
ca-certificates \
gnupg2 \
&& curl -sL https://apt.verdnatura.es/conf/verdnatura.gpg | apt-key add - \
&& echo "deb http://apt.verdnatura.es/ jessie main" \ && echo "deb http://apt.verdnatura.es/ jessie main" \
> /etc/apt/sources.list.d/vn.list \ > /etc/apt/sources.list.d/vn.list \
&& apt update && apt-get update
RUN apt install -y --no-install-recommends \ RUN apt-get install -y --no-install-recommends \
php-image-text \ php-image-text \
php-text-captcha \ php-text-captcha \
php-apcu \ php-apcu \
@ -44,8 +46,8 @@ ARG VERSION
ENV VERSION $VERSION ENV VERSION $VERSION
RUN echo $VERSION RUN echo $VERSION
RUN apt update \ RUN apt-get update \
&& apt install -y php-vn-lib hedera-web=$VERSION \ && apt-get install -y php-vn-lib hedera-web=$VERSION \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
CMD ["apachectl", "-D", "FOREGROUND"] CMD ["apachectl", "-D", "FOREGROUND"]