work with workdir
This commit is contained in:
parent
ccbf0b51ef
commit
ca62c8039a
1 changed files with 3 additions and 3 deletions
|
@ -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 .
|
||||
COPY --from=composer /build/ .
|
Loading…
Reference in a new issue