Ajout du conteneur baikal.

This commit is contained in:
ycharbi
2019-09-03 17:20:11 +02:00
parent d697ba67a2
commit 4e20d894a4
2 changed files with 34 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM debian:buster-slim
ENV VERSION 0.6.0
RUN echo "baikal.ycharbi.fr" > /etc/hostname
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends wget ca-certificates apache2 php php-sqlite3 zip php-xml php-mbstring unzip
RUN wget -q https://github.com/fruux/Baikal/releases/download/$VERSION/baikal-$VERSION.zip -P /tmp/
RUN unzip /tmp/baikal-$VERSION.zip -d /var/www/ && chown -R www-data:www-data /var/www/baikal
COPY baikal.conf /etc/apache2/sites-available/
RUN a2dissite 000-default.conf
RUN a2ensite baikal.conf
RUN a2enmod rewrite
RUN echo "ServerName baikal.ycharbi.fr\nServerSignature Off\nServerTokens Prod" >> /etc/apache2/apache2.conf
RUN apt-get clean && rm -rf /tmp/*
EXPOSE 80
CMD /usr/sbin/apache2ctl -D FOREGROUND