From 6f787f63f7530d6da94195e0e148b97f581b0bed Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Tue, 22 Dec 2020 20:13:15 +0100 Subject: [PATCH] =?UTF-8?q?updated=20Dockerfile=20for=20snowpack=20?= =?UTF-8?q?=E2=9D=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ref #3 --- .gitignore | 3 ++- Dockerfile | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index d9ccf3ab..fdfd532e 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ node_modules dist dist-ssr -public/env.js \ No newline at end of file +public/env.js +/build \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index b20271d3..b987430c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,13 @@ FROM node:15.4.0-alpine3.12 WORKDIR /app RUN npm i -g pnpm -COPY package.json index.html ./ +COPY package.json ./ RUN pnpm i +COPY package.json *.config.js ./ COPY src ./src COPY public ./public RUN pnpm run build # final image FROM fholzer/nginx-brotli:v1.19.1 -COPY --from=0 /app/dist /usr/share/nginx/html +COPY --from=0 /app/build /usr/share/nginx/html COPY ./nginx.conf /etc/nginx/nginx.conf \ No newline at end of file