Webserver hinzugefügt

This commit is contained in:
borgal
2021-08-29 19:30:08 +00:00
parent 3dbdf16a7f
commit d9da70ea94
3 changed files with 91 additions and 0 deletions

20
webserver/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM php:7.4.3-apache
#FROM php:apache
RUN apt-get update \
&& apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
libzip-dev \
&& a2enmod rewrite \
&& a2enmod headers
RUN docker-php-ext-configure gd --with-freetype --with-jpeg
RUN docker-php-ext-install opcache gd pdo_mysql zip
# Backup, falls mysqli nicht funktioniert
RUN docker-php-ext-install mysqli
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
RUN service apache2 restart