2018-09-20 13:14:45 +02:00
|
|
|
FROM node:8-alpine as themes
|
|
|
|
WORKDIR /app
|
2018-12-04 02:27:10 +01:00
|
|
|
RUN apk add --no-cache yarn
|
2018-09-20 13:14:45 +02:00
|
|
|
COPY .babelrc package.json webpack.config.js /app/
|
|
|
|
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
|
|
|
|
COPY contrib/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/
|
2018-09-20 17:20:02 +02:00
|
|
|
RUN touch /var/www/public/index.php
|