diff options
Diffstat (limited to 'contrib/nginx')
-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/ |