diff options
| author | Philipp Le <philipp-le-prviat@freenet.de> | 2021-02-21 01:52:03 +0100 |
|---|---|---|
| committer | Philipp Le <philipp-le-prviat@freenet.de> | 2021-02-21 01:54:53 +0100 |
| commit | c922797429e6c078a2c659a6a79284e498244533 (patch) | |
| tree | 6a3788eeb4049a1d315c092d71b4dfe155a2903a /Dockerfile | |
| parent | b67c617476b0e20973f1fa2001709bc53592da83 (diff) | |
| download | baikal-docker-c922797429e6c078a2c659a6a79284e498244533.zip baikal-docker-c922797429e6c078a2c659a6a79284e498244533.tar.gz baikal-docker-c922797429e6c078a2c659a6a79284e498244533.tar.bz2 | |
fix: Build image on our own from Debian 9
Some packages were missing in the older approach. So we have set up the
image from a plain Debian 9 Slim image and installed PHP7 and all
required packages on owr own.
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 34 |
1 files changed, 29 insertions, 5 deletions
@@ -1,14 +1,38 @@ -FROM php:7.4-apache AS intermediate +FROM debian:9-slim RUN apt-get update RUN apt-get install -y curl RUN apt-get install -y unzip +RUN apt-get install -y apache2 +RUN apt-get install -y rsyslog +RUN apt-get install -y sqlite3 +RUN apt-get install -y php +RUN apt-get install -y libapache2-mod-php +RUN apt-get install -y php-date +RUN apt-get install -y php-dompdf +RUN apt-get install -y php-mbstring +RUN apt-get install -y php-sqlite3 +RUN apt-get install -y php-mysql +RUN apt-get install -y php-dom + WORKDIR /src RUN curl -LO https://github.com/fruux/Baikal/releases/download/0.4.6/baikal-0.4.6.zip && unzip baikal-0.4.6.zip && rm -f baikal-0.4.6.zip RUN rm -r baikal/Specific/* +RUN mkdir -p /var/www/ +RUN mv /src/baikal/* /var/www/html/ -FROM php:7.4-apache - -COPY --from=intermediate /src/baikal/* /var/www/html/ -WORKDIR /var/www/html VOLUME /var/www/html/Specific + +WORKDIR /etc/apache2/sites-available +RUN /etc/init.d/apache2 stop ; a2enmod rewrite +RUN mv -f 000-default.conf .. +COPY resources/baikal.apache2 /etc/apache2/sites-available/000-default.conf +RUN echo "error_log = syslog" >> /etc/php/7.0/apache2/php.ini + +WORKDIR / +COPY bin/runapache2 / + +RUN awk '/vim: syntax/ { printf("# Poxy; CVE-2016-5387\nLoadModule headers_module /usr/lib/apache2/modules/mod_headers.so\nRequestHeader unset Proxy early\n%s\n", $0); next; } { print; }' /etc/apache2/apache2.conf > /tmp/apache2.conf +RUN cat /tmp/apache2.conf > /etc/apache2/apache2.conf && rm /tmp/apache2.conf + +ENTRYPOINT [ "/runapache2" ] |
