From 44b419e5da0c3fd6860f25f4c96ec825135daa69 Mon Sep 17 00:00:00 2001 From: sct Date: Tue, 24 Nov 2020 15:01:28 +0000 Subject: [PATCH] build: further shrinkage for the docker build --- .dockerignore | 6 ++++-- Dockerfile | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.dockerignore b/.dockerignore index 699e7c924..6e5894b74 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,8 +1,10 @@ -**/node_modules -**/.next +node_modules +.next .git .gitconfig .gitignore .github **/README.md **/.vscode +config/db/db.sqlite3 +config/db/logs/overseerr.log diff --git a/Dockerfile b/Dockerfile index 21c55c843..b93557fab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,7 @@ RUN yarn --frozen-lockfile && \ yarn build # remove development dependencies -RUN npm prune --production +RUN yarn install --production --ignore-scripts --prefer-offline +RUN yarn cache clean CMD yarn start