switch to nginx as webserver

This commit is contained in:
Jonas Leder 2021-11-25 13:13:35 +01:00
parent 1a6da26701
commit fe0d0a7ada

View file

@ -20,8 +20,7 @@ RUN composer install
# |--------------------------------------------------------------------------
# | Install Webserver
# |--------------------------------------------------------------------------
FROM gitlab.jonasled.de/jonasled/apache-php-minimal:latest
FROM gitlab.jonasled.de/jonasled/nginx-php-minimal:latest
RUN apk update && \
apk add php8-mysqli php8-mbstring php8-curl curl php8-simplexml --no-cache && \
echo "RemoteIPHeader X-Forwarded-For" > /etc/apache2/conf.d/remoteip.conf
COPY --from=composer /build/public .
apk add php8-mysqli php8-mbstring php8-curl php8-simplexml --no-cache
COPY --from=composer /build/public .