From 545eb291b6d32c613f814eefc8e80e39899b1e90 Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Mon, 14 Oct 2019 23:36:26 +0200 Subject: Adds a docker dev setup --- docker/nginx/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'docker/nginx/Dockerfile') diff --git a/docker/nginx/Dockerfile b/docker/nginx/Dockerfile index 47b3d50e..f4355af9 100644 --- a/docker/nginx/Dockerfile +++ b/docker/nginx/Dockerfile @@ -1,3 +1,7 @@ +FROM nginx:alpine as es_nginx +RUN mkdir -p /var/www/public/ && touch /var/www/public/index.php +COPY docker/nginx/nginx.conf /etc/nginx/nginx.conf + FROM node:10-alpine as themes WORKDIR /app COPY .babelrc .browserslistrc package.json webpack.config.js yarn.lock /app/ @@ -5,7 +9,5 @@ RUN yarn install COPY resources/assets/ /app/resources/assets RUN yarn build -FROM nginx:alpine -RUN mkdir -p /var/www/public/ && touch /var/www/public/index.php -COPY docker/nginx/nginx.conf /etc/nginx/nginx.conf +FROM es_nginx COPY --from=themes /app/public/assets /var/www/public/assets/ -- cgit v1.3.1