From ca62c8039a1f6f2ef27017522ddbe0459394f18e Mon Sep 17 00:00:00 2001 From: Jonas Leder Date: Sun, 26 Sep 2021 00:21:14 +0200 Subject: [PATCH] work with workdir --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d035489..69c6f5d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,8 @@ RUN yarn compile # Install PHP dependencies FROM composer:2 AS composer WORKDIR /build -COPY --from=buildJS . . -RUN cd public/API && composer install +COPY --from=buildJS /build/public . +RUN cd API && composer install # Prepare Webserver FROM gitlab.jonasled.de/jonasled/apache-php-minimal:latest @@ -25,4 +25,4 @@ RUN apk update && \ # |-------------------------------------------------------------------------- # | copy website from node build # |-------------------------------------------------------------------------- -COPY --from=composer public . \ No newline at end of file +COPY --from=composer /build/ . \ No newline at end of file