Skip to content
Snippets Groups Projects
Commit dd2870eb authored by Jonas Leder's avatar Jonas Leder
Browse files

add composer

parent 6508087d
No related branches found
No related tags found
No related merge requests found
Pipeline #896 failed
# Bootstrap SCSS + TS # Bootstrap SCSS
FROM node:latest AS build FROM node:latest AS buildJS
WORKDIR /build WORKDIR /build
COPY . /build COPY . /build
RUN mkdir /build/public/js RUN mkdir /build/public/js
...@@ -7,6 +7,13 @@ RUN mkdir /build/public/css ...@@ -7,6 +7,13 @@ RUN mkdir /build/public/css
RUN yarn install RUN yarn install
RUN yarn compile 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 # Prepare Webserver
FROM php:8-apache-buster FROM php:8-apache-buster
...@@ -23,7 +30,7 @@ RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" ...@@ -23,7 +30,7 @@ RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
# |-------------------------------------------------------------------------- # |--------------------------------------------------------------------------
# | copy website from node build # | copy website from node build
# |-------------------------------------------------------------------------- # |--------------------------------------------------------------------------
COPY --from=build /build/public /var/www/html COPY --from=composer /build/public /var/www/html
# |-------------------------------------------------------------------------- # |--------------------------------------------------------------------------
# | enable apache modules # | enable apache modules
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment