28 lines
No EOL
836 B
Docker
28 lines
No EOL
836 B
Docker
# Bootstrap SCSS
|
|
FROM node:lts-alpine AS buildJS
|
|
WORKDIR /build
|
|
COPY . .
|
|
RUN mkdir public/js
|
|
RUN mkdir public/css
|
|
RUN yarn install
|
|
RUN yarn compile
|
|
|
|
# Install PHP dependencies
|
|
FROM composer:2 AS composer
|
|
WORKDIR /build
|
|
COPY --from=buildJS . .
|
|
RUN cd public/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 public . |