update comments
This commit is contained in:
parent
bb6af1d786
commit
b589b33624
1 changed files with 6 additions and 11 deletions
17
Dockerfile
17
Dockerfile
|
@ -1,4 +1,6 @@
|
||||||
# Build SCSS and JS
|
# |--------------------------------------------------------------------------
|
||||||
|
# | Build SCSS and JS
|
||||||
|
# |--------------------------------------------------------------------------
|
||||||
FROM node:lts-alpine AS buildJS
|
FROM node:lts-alpine AS buildJS
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
COPY . .
|
COPY . .
|
||||||
|
@ -7,22 +9,15 @@ RUN mkdir public/css
|
||||||
RUN yarn install
|
RUN yarn install
|
||||||
RUN yarn compile
|
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 /build/public .
|
COPY --from=buildJS /build/public .
|
||||||
RUN cd API && composer install
|
RUN cd API && composer install
|
||||||
|
|
||||||
# Prepare Webserver
|
|
||||||
FROM gitlab.jonasled.de/jonasled/apache-php-minimal:latest
|
FROM gitlab.jonasled.de/jonasled/apache-php-minimal:latest
|
||||||
|
|
||||||
# |--------------------------------------------------------------------------
|
|
||||||
# | install dependencies
|
|
||||||
# |--------------------------------------------------------------------------
|
|
||||||
RUN apk update && \
|
RUN apk update && \
|
||||||
apk add php8-mysqli php8-mbstring curl --no-cache
|
apk add php8-mysqli php8-mbstring curl --no-cache
|
||||||
|
|
||||||
# |--------------------------------------------------------------------------
|
|
||||||
# | copy website from node build
|
|
||||||
# |--------------------------------------------------------------------------
|
|
||||||
COPY --from=composer /build/ .
|
COPY --from=composer /build/ .
|
Loading…
Reference in a new issue