summaryrefslogtreecommitdiff
path: root/docker/nginx/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'docker/nginx/Dockerfile')
-rw-r--r--docker/nginx/Dockerfile13
1 files changed, 13 insertions, 0 deletions
diff --git a/docker/nginx/Dockerfile b/docker/nginx/Dockerfile
new file mode 100644
index 00000000..f4355af9
--- /dev/null
+++ b/docker/nginx/Dockerfile
@@ -0,0 +1,13 @@
+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/
+RUN yarn install
+COPY resources/assets/ /app/resources/assets
+RUN yarn build
+
+FROM es_nginx
+COPY --from=themes /app/public/assets /var/www/public/assets/