update build script

This commit is contained in:
Jonas Leder 2021-10-30 06:46:06 +00:00
parent bde76be93c
commit 7c69e5f418

View file

@ -14,8 +14,8 @@ RUN yarn compile
# |--------------------------------------------------------------------------
FROM composer:2 AS composer
WORKDIR /build
COPY --from=buildJS /build/public .
RUN cd API && composer install
COPY --from=buildJS /build .
RUN composer install
# |--------------------------------------------------------------------------
# | Install Webserver
@ -24,4 +24,4 @@ FROM gitlab.jonasled.de/jonasled/apache-php-minimal:latest
RUN apk update && \
apk add php8-mysqli php8-mbstring php8-curl curl --no-cache && \
echo "RemoteIPHeader X-Forwarded-For" > /etc/apache2/conf.d/remoteip.conf
COPY --from=composer /build/ .
COPY --from=composer /build/public .