|
|
@ -1,15 +1,9 @@
|
|
|
|
# Setup
|
|
|
|
|
|
|
|
ARG NGINX_IMAGE=engelsystem-nginx:latest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# composer install
|
|
|
|
# composer install
|
|
|
|
FROM composer AS composer
|
|
|
|
FROM composer AS composer
|
|
|
|
COPY ./ /app/
|
|
|
|
COPY ./ /app/
|
|
|
|
RUN composer --no-ansi install --no-dev --ignore-platform-reqs
|
|
|
|
RUN composer --no-ansi install --no-dev --ignore-platform-reqs
|
|
|
|
RUN composer --no-ansi dump-autoload --optimize
|
|
|
|
RUN composer --no-ansi dump-autoload --optimize
|
|
|
|
|
|
|
|
|
|
|
|
# Use frontend container for assets
|
|
|
|
|
|
|
|
FROM ${NGINX_IMAGE} AS frontend
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Intermediate container for less layers
|
|
|
|
# Intermediate container for less layers
|
|
|
|
FROM alpine as data
|
|
|
|
FROM alpine as data
|
|
|
|
COPY bin/ /app/bin
|
|
|
|
COPY bin/ /app/bin
|
|
|
@ -18,7 +12,6 @@ COPY db/ /app/db
|
|
|
|
COPY import/ /app/import
|
|
|
|
COPY import/ /app/import
|
|
|
|
COPY includes/ /app/includes
|
|
|
|
COPY includes/ /app/includes
|
|
|
|
COPY public/ /app/public
|
|
|
|
COPY public/ /app/public
|
|
|
|
COPY --from=frontend /var/www/public/assets/ /app/public/assets
|
|
|
|
|
|
|
|
COPY resources/lang /app/resources/lang
|
|
|
|
COPY resources/lang /app/resources/lang
|
|
|
|
COPY resources/views /app/resources/views
|
|
|
|
COPY resources/views /app/resources/views
|
|
|
|
COPY src/ /app/src
|
|
|
|
COPY src/ /app/src
|
|
|
|