summaryrefslogtreecommitdiff
path: root/contrib/nginx/Dockerfile
blob: 7490732642f0176f42ce1d902fc0bf3dff613398 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
FROM node:8-alpine as themes
WORKDIR /app
RUN apk add --no-cache yarn
COPY .babelrc package.json webpack.config.js /app/
RUN yarn install
COPY resources/assets/ /app/resources/assets
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