summaryrefslogtreecommitdiff
path: root/docker/nginx/Dockerfile
blob: f4355af9da7b6c0968a3debe594d880e9cac951a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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/