summaryrefslogtreecommitdiff
path: root/docker/nginx/Dockerfile
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-10-27 12:20:30 +0100
committerGitHub <noreply@github.com>2019-10-27 12:20:30 +0100
commit360a27016184bce3039fdbbb45b8f7b6bf02da3a (patch)
treedf2a3794ae4248b8efee23d01981b2451ca4fa2e /docker/nginx/Dockerfile
parent9b08b951a2f7036519a9711ff4aa32a8709e261d (diff)
parent545eb291b6d32c613f814eefc8e80e39899b1e90 (diff)
Merge pull request #662 from weeman1337/feature/660-docker-dev
Improves the docker workflow
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/