summaryrefslogtreecommitdiff
path: root/contrib/nginx/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/nginx/Dockerfile')
-rw-r--r--contrib/nginx/Dockerfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/nginx/Dockerfile b/contrib/nginx/Dockerfile
new file mode 100644
index 00000000..e838d368
--- /dev/null
+++ b/contrib/nginx/Dockerfile
@@ -0,0 +1,12 @@
+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/
+RUN touch /var/www/public/index.php