work with workdir

This commit is contained in:
Jonas Leder 2021-09-26 00:21:14 +02:00
parent ccbf0b51ef
commit ca62c8039a
No known key found for this signature in database
GPG key ID: CC3C488E27DFF5CA

View file

@ -10,8 +10,8 @@ RUN yarn compile
# Install PHP dependencies # Install PHP dependencies
FROM composer:2 AS composer FROM composer:2 AS composer
WORKDIR /build WORKDIR /build
COPY --from=buildJS . . COPY --from=buildJS /build/public .
RUN cd public/API && composer install RUN cd API && composer install
# Prepare Webserver # Prepare Webserver
FROM gitlab.jonasled.de/jonasled/apache-php-minimal:latest FROM gitlab.jonasled.de/jonasled/apache-php-minimal:latest
@ -25,4 +25,4 @@ RUN apk update && \
# |-------------------------------------------------------------------------- # |--------------------------------------------------------------------------
# | copy website from node build # | copy website from node build
# |-------------------------------------------------------------------------- # |--------------------------------------------------------------------------
COPY --from=composer public . COPY --from=composer /build/ .