engelsystem/docker/nginx/Dockerfile

16 lines
491 B
Docker
Raw Normal View History

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
WORKDIR /app
2019-08-19 00:07:08 +02:00
COPY .babelrc .browserslistrc package.json webpack.config.js yarn.lock /app/
RUN yarn --frozen-lockfile
COPY resources/assets/ /app/resources/assets
RUN yarn build
2019-10-14 23:36:26 +02:00
FROM es_nginx
COPY --from=themes /app/public/assets /var/www/public/assets/