diff options
Diffstat (limited to 'contrib/nginx')
-rw-r--r-- | contrib/nginx/Dockerfile | 5 |
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/ |