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
# NodeJs
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash - \
&& apt install -y --no-install-recommends nodejs
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
ca-certificates \
gnupg2
# Apache
RUN apt install -y --no-install-recommends \
RUN apt-get install -y --no-install-recommends \
apache2 \
libapache2-mod-php \
&& . /etc/apache2/envvars \
@ -20,18 +21,19 @@ RUN apt install -y --no-install-recommends \
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
RUN apt install -y --no-install-recommends \
curl \
ca-certificates \
gnupg2 \
&& curl -sL https://apt.verdnatura.es/conf/verdnatura.gpg | apt-key add - \
RUN 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 update
&& apt-get update
RUN apt install -y --no-install-recommends \
RUN apt-get install -y --no-install-recommends \
php-image-text \
php-text-captcha \
php-apcu \
@ -44,8 +46,8 @@ ARG VERSION
ENV VERSION $VERSION
RUN echo $VERSION
RUN apt update \
&& apt install -y php-vn-lib hedera-web=$VERSION \
RUN apt-get update \
&& apt-get install -y php-vn-lib hedera-web=$VERSION \
&& rm -rf /var/lib/apt/lists/*
CMD ["apachectl", "-D", "FOREGROUND"]