rename last stage to prduction

This commit is contained in:
Jonas Leder 2022-03-25 12:17:45 +01:00
parent 8c2252a0d4
commit 9b6c5d0fb8
No known key found for this signature in database
GPG key ID: CC3C488E27DFF5CA

View file

@ -20,11 +20,12 @@ RUN composer install
# |--------------------------------------------------------------------------
# | Install Webserver
# |--------------------------------------------------------------------------
FROM gitlab.jonasled.de/jonasled/nginx-php-minimal:8-latest
FROM gitlab.jonasled.de/jonasled/nginx-php-minimal:8-latest as production
ENV PHP_FILE_UPLOADS=Off
RUN apk update && \
apk add php8-mysqli php8-mbstring php8-curl php8-simplexml --no-cache && \
rm /etc/nginx/http.d/default.conf
COPY --from=composer /build/public .
COPY ./nginx.conf /etc/nginx/http.d/default.conf