2018-09-20 13:14:45 +02:00
|
|
|
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
|
|
|
|
|
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/
|
|
|
|
COPY public/.htaccess /var/www/public/
|
|
|
|
COPY public/index.php /var/www/public/
|