diff options
author | marudor <marudor@marudor.de> | 2018-09-20 13:14:45 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2018-09-23 11:42:41 +0200 |
commit | 41399fb9d91d29a18e4e42e5d16a72f19c325ece (patch) | |
tree | 113bd808c81cc8bac0cd139cc6a15fafbb7b0e73 /contrib/nginx/Dockerfile | |
parent | 2a134e6c0b8e7c5bbeade38d29052194bd9dfa46 (diff) |
Assets are only needed by nginx - not php
Diffstat (limited to 'contrib/nginx/Dockerfile')
-rw-r--r-- | contrib/nginx/Dockerfile | 11 |
1 files changed, 11 insertions, 0 deletions
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/ |