summaryrefslogtreecommitdiff
path: root/contrib/nginx/Dockerfile
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-07-26 13:32:54 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2019-07-26 15:51:53 +0200
commitc7deeb9368a6dad4e60ab80d0d7a98713d31a8b9 (patch)
treeb8c8e6e178e31ba86b7dcff497697c9bdc16258c /contrib/nginx/Dockerfile
parentaa11bead7cff72daa2ce71a03701d6d2875d7ec4 (diff)
Docker/Release: Add more state files, improved Dockerfiles
Diffstat (limited to 'contrib/nginx/Dockerfile')
-rw-r--r--contrib/nginx/Dockerfile5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/nginx/Dockerfile b/contrib/nginx/Dockerfile
index 74907326..3fe424aa 100644
--- a/contrib/nginx/Dockerfile
+++ b/contrib/nginx/Dockerfile
@@ -1,12 +1,13 @@
FROM node:8-alpine as themes
WORKDIR /app
RUN apk add --no-cache yarn
-COPY .babelrc package.json webpack.config.js /app/
+COPY .babelrc .browserslistrc package.json webpack.config.js /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 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
+COPY --from=themes /app/yarn.lock /var/www/