engelsystem/contrib/nginx/Dockerfile

13 lines
367 B
Docker
Raw Normal View History

FROM node:8-alpine as themes
WORKDIR /app
RUN apk add --no-cache yarn
COPY resources/assets/ /app/resources/assets
COPY .babelrc package.json webpack.config.js /app/
RUN yarn install
RUN yarn build
FROM nginx:alpine
COPY contrib/nginx/nginx.conf /etc/nginx/nginx.conf
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