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