2019-10-14 23:36:26 +02:00
|
|
|
FROM nginx:alpine as es_nginx
|
2020-05-09 13:08:53 +02:00
|
|
|
COPY docker/nginx/entrypoint.sh /
|
|
|
|
ENTRYPOINT /entrypoint.sh
|
2019-10-14 23:36:26 +02:00
|
|
|
RUN mkdir -p /var/www/public/ && touch /var/www/public/index.php
|
|
|
|
COPY docker/nginx/nginx.conf /etc/nginx/nginx.conf
|
|
|
|
|
2020-09-01 10:55:53 +02:00
|
|
|
FROM node:14-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
|
|
|
|
|
2019-10-14 23:36:26 +02:00
|
|
|
FROM es_nginx
|
2018-09-20 13:14:45 +02:00
|
|
|
COPY --from=themes /app/public/assets /var/www/public/assets/
|