update comments

This commit is contained in:
Jonas Leder 2021-09-26 00:24:09 +02:00
parent bb6af1d786
commit b589b33624
No known key found for this signature in database
GPG key ID: CC3C488E27DFF5CA

View file

@ -1,4 +1,6 @@
# Build SCSS and JS
# |--------------------------------------------------------------------------
# | Build SCSS and JS
# |--------------------------------------------------------------------------
FROM node:lts-alpine AS buildJS
WORKDIR /build
COPY . .
@ -7,22 +9,15 @@ RUN mkdir public/css
RUN yarn install
RUN yarn compile
# Install PHP dependencies
# |--------------------------------------------------------------------------
# | Install PHP dependencies
# |--------------------------------------------------------------------------
FROM composer:2 AS composer
WORKDIR /build
COPY --from=buildJS /build/public .
RUN cd API && composer install
# Prepare Webserver
FROM gitlab.jonasled.de/jonasled/apache-php-minimal:latest
# |--------------------------------------------------------------------------
# | install dependencies
# |--------------------------------------------------------------------------
RUN apk update && \
apk add php8-mysqli php8-mbstring curl --no-cache
# |--------------------------------------------------------------------------
# | copy website from node build
# |--------------------------------------------------------------------------
COPY --from=composer /build/ .