summaryrefslogtreecommitdiff
path: root/docker/nginx/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'docker/nginx/Dockerfile')
-rw-r--r--docker/nginx/Dockerfile11
1 files changed, 11 insertions, 0 deletions
diff --git a/docker/nginx/Dockerfile b/docker/nginx/Dockerfile
new file mode 100644
index 00000000..47b3d50e
--- /dev/null
+++ b/docker/nginx/Dockerfile
@@ -0,0 +1,11 @@
+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 nginx:alpine
+RUN mkdir -p /var/www/public/ && touch /var/www/public/index.php
+COPY docker/nginx/nginx.conf /etc/nginx/nginx.conf
+COPY --from=themes /app/public/assets /var/www/public/assets/