From 53ce83a272c636c4eccd043f16215d7475a2d8a9 Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Mon, 14 Oct 2019 22:23:52 +0200 Subject: Moves docker files from contrib to docker --- docker/nginx/Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 docker/nginx/Dockerfile (limited to 'docker/nginx/Dockerfile') diff --git a/docker/nginx/Dockerfile b/docker/nginx/Dockerfile new file mode 100644 index 00000000..47b3d50e --- /dev/null +++ b/docker/nginx/Dockerfile @@ -0,0 +1,11 @@ +FROM node:10-alpine as themes +WORKDIR /app +COPY .babelrc .browserslistrc package.json webpack.config.js yarn.lock /app/ +RUN yarn install +COPY resources/assets/ /app/resources/assets +RUN yarn build + +FROM nginx:alpine +RUN mkdir -p /var/www/public/ && touch /var/www/public/index.php +COPY docker/nginx/nginx.conf /etc/nginx/nginx.conf +COPY --from=themes /app/public/assets /var/www/public/assets/ -- cgit v1.2.3-70-g09d2