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