add composer
This commit is contained in:
parent
6508087d0c
commit
dd2870ebc3
1 changed files with 10 additions and 3 deletions
13
Dockerfile
13
Dockerfile
|
@ -1,5 +1,5 @@
|
|||
# Bootstrap SCSS + TS
|
||||
FROM node:latest AS build
|
||||
# Bootstrap SCSS
|
||||
FROM node:latest AS buildJS
|
||||
WORKDIR /build
|
||||
COPY . /build
|
||||
RUN mkdir /build/public/js
|
||||
|
@ -7,6 +7,13 @@ RUN mkdir /build/public/css
|
|||
RUN yarn install
|
||||
RUN yarn compile
|
||||
|
||||
# Bootstrap SCSS + TS
|
||||
FROM composer:latest AS composer
|
||||
WORKDIR /build
|
||||
COPY --from=build /build /build
|
||||
RUN cd /build/public/API
|
||||
RUN composer install
|
||||
|
||||
# Prepare Webserver
|
||||
FROM php:8-apache-buster
|
||||
|
||||
|
@ -23,7 +30,7 @@ RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
|||
# |--------------------------------------------------------------------------
|
||||
# | copy website from node build
|
||||
# |--------------------------------------------------------------------------
|
||||
COPY --from=build /build/public /var/www/html
|
||||
COPY --from=composer /build/public /var/www/html
|
||||
|
||||
# |--------------------------------------------------------------------------
|
||||
# | enable apache modules
|
||||
|
|
Loading…
Reference in a new issue