2019-08-19 00:07:08 +02:00
|
|
|
FROM node:10-alpine as themes
|
2018-09-20 13:14:45 +02:00
|
|
|
WORKDIR /app
|
2019-08-19 00:07:08 +02:00
|
|
|
COPY .babelrc .browserslistrc package.json webpack.config.js yarn.lock /app/
|
2018-09-20 13:14:45 +02:00
|
|
|
RUN yarn install
|
2018-12-04 03:23:37 +01:00
|
|
|
COPY resources/assets/ /app/resources/assets
|
2018-09-20 13:14:45 +02:00
|
|
|
RUN yarn build
|
|
|
|
|
2018-08-12 16:23:35 +02:00
|
|
|
FROM nginx:alpine
|
2019-07-26 13:32:54 +02:00
|
|
|
RUN mkdir -p /var/www/public/ && touch /var/www/public/index.php
|
2019-10-14 22:23:52 +02:00
|
|
|
COPY docker/nginx/nginx.conf /etc/nginx/nginx.conf
|
2018-09-20 13:14:45 +02:00
|
|
|
COPY --from=themes /app/public/assets /var/www/public/assets/
|