website/Dockerfile
2021-09-26 00:24:09 +02:00

23 lines
No EOL
769 B
Docker

# |--------------------------------------------------------------------------
# | Build SCSS and JS
# |--------------------------------------------------------------------------
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 /build/public .
RUN cd API && composer install
FROM gitlab.jonasled.de/jonasled/apache-php-minimal:latest
RUN apk update && \
apk add php8-mysqli php8-mbstring curl --no-cache
COPY --from=composer /build/ .