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
|
# 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/ .
|
Loading…
Reference in a new issue