27 lines
No EOL
1 KiB
Docker
27 lines
No EOL
1 KiB
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 .
|
|
RUN composer install
|
|
|
|
# |--------------------------------------------------------------------------
|
|
# | Install Webserver
|
|
# |--------------------------------------------------------------------------
|
|
FROM gitlab.jonasled.de/jonasled/apache-php-minimal:latest
|
|
RUN apk update && \
|
|
apk add php8-mysqli php8-mbstring php8-curl curl --no-cache && \
|
|
echo "RemoteIPHeader X-Forwarded-For" > /etc/apache2/conf.d/remoteip.conf
|
|
COPY --from=composer /build/public . |