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