From 41399fb9d91d29a18e4e42e5d16a72f19c325ece Mon Sep 17 00:00:00 2001 From: marudor Date: Thu, 20 Sep 2018 13:14:45 +0200 Subject: Assets are only needed by nginx - not php --- contrib/nginx/Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'contrib/nginx') diff --git a/contrib/nginx/Dockerfile b/contrib/nginx/Dockerfile index a06ea3e7..3cda7c17 100644 --- a/contrib/nginx/Dockerfile +++ b/contrib/nginx/Dockerfile @@ -1,2 +1,13 @@ +FROM node:8-alpine as themes +WORKDIR /app +COPY resources/assets/ /app/resources/assets +COPY .babelrc package.json webpack.config.js /app/ +RUN apk add --no-cache yarn +RUN yarn install +RUN yarn build + FROM nginx:alpine COPY contrib/nginx/nginx.conf /etc/nginx/nginx.conf +COPY --from=themes /app/public/assets /var/www/public/assets/ +COPY public/.htaccess /var/www/public/ +COPY public/index.php /var/www/public/ -- cgit v1.3.1