parent
d697ba67a2
commit
4e20d894a4
@ -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
|
@ -0,0 +1,20 @@
|
||||
<VirtualHost *:80>
|
||||
ServerAdmin webmaster@localhost
|
||||
DocumentRoot /var/www/baikal/html
|
||||
|
||||
RewriteEngine On
|
||||
RewriteRule /.well-known/carddav /dav.php [R,L]
|
||||
RewriteRule /.well-known/caldav /dav.php [R,L]
|
||||
|
||||
<Directory "/var/www/baikal/html">
|
||||
Options None
|
||||
Options +FollowSymlinks
|
||||
AllowOverride All
|
||||
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
|
||||
</VirtualHost>
|
Loading…
Reference in new issue