From ac952b690660f9d385e68d1c895cfc7c7a53374d Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Thu, 7 Jan 2021 20:14:45 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A6=20further=20Dockerfile/=20Bundle?= =?UTF-8?q?=20optimizations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close #25 --- .dockerignore | 3 +++ Dockerfile | 1 + snowpack.config.js | 1 + 3 files changed, 5 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..e1138c61 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +public/env.sample.js +public/workbox-*.js +public/workbox-*.js.map \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 7a5a40fe..7b4990e7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,7 @@ FROM alpine COPY --from=0 /app/build /app RUN rm -rf /app/build/_dist_/components RUN rm -rf /app/build/_dist_/locales +RUN rm -rf /app/build-manifest.json FROM fholzer/nginx-brotli:v1.19.1 COPY --from=1 /app /usr/share/nginx/html COPY ./nginx.conf /etc/nginx/nginx.conf \ No newline at end of file diff --git a/snowpack.config.js b/snowpack.config.js index b8671c7d..332cb925 100644 --- a/snowpack.config.js +++ b/snowpack.config.js @@ -10,6 +10,7 @@ module.exports = { ], installOptions: { /* ... */ + sourceMap: false }, devOptions: { /* ... */