engelsystem/docker/nginx/Dockerfile

14 lines
421 B
Docker
Raw Normal View History

2019-10-14 23:36:26 +02:00
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
2019-08-19 00:07:08 +02:00
FROM node:10-alpine as themes
WORKDIR /app
2019-08-19 00:07:08 +02:00
COPY .babelrc .browserslistrc package.json webpack.config.js yarn.lock /app/
RUN yarn install
COPY resources/assets/ /app/resources/assets
RUN yarn build
2019-10-14 23:36:26 +02:00
FROM es_nginx
COPY --from=themes /app/public/assets /var/www/public/assets/