From 2391952437b2e48d5e6cd2eb7b647f3eb3c3bf56 Mon Sep 17 00:00:00 2001 From: marudor Date: Thu, 8 Feb 2018 22:56:44 +0100 Subject: initial Docker stuff --- Dockerfile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..a45633f5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,31 @@ +FROM composer AS composer +COPY composer.json /app/ +RUN composer install + + +FROM node:8-alpine as themes +WORKDIR /app +RUN npm install -g less +COPY --from=composer /app/vendor /app/vendor +COPY public/ /app/public +COPY themes/ /app/themes +RUN sh /app/themes/build-themes.sh + +FROM php:7-fpm-alpine +RUN apk add --no-cache icu-dev +RUN docker-php-ext-install intl +RUN apk add --no-cache gettext-dev +RUN docker-php-ext-install gettext +RUN docker-php-ext-install pdo_mysql + +COPY --from=composer /app/vendor /var/www/vendor +COPY --from=themes /app/public/ /var/www/html +COPY src/ /var/www/src/ +COPY includes/ /var/www/includes/ +COPY config/ /var/www/config/ +COPY locale/ /var/www/locale +COPY templates/ /var/www/templates + +# Symlink gets copied so we delete the symlink. +RUN rm /var/www/html/vendor/bootstrap +COPY vendor/twbs/bootstrap/dist/ /var/www/html/vendor/bootstrap/ -- cgit v1.2.3-54-g00ecf