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