Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
build: copy package-lock.json into dist folder as well
Panagiotis Papadopoulos907b8c503e30
diff --git a/Dockerfile b/Dockerfileindex 52a0872027..c21d9f4f6c 100644--- a/Dockerfile+++ b/Dockerfile@@ -13,11 +13,9 @@ RUN npm ci && \rm -rf dist/node_modules && \mv dist/* \start-docker.sh \- package-lock.json \/usr/src/app/ && \rm -rf /usr/src/app/build-#TODO: move package-lock copying into copy-dist#TODO: improve node_modules handling in copy-dist/Dockerfile -> remove duplicated work# currently copy-dist will copy certain node_module folders, but in the Dockerfile we delete them again (to keep image size down),# as we install necessary dependencies in runtime buildstage anywaysdiff --git a/Dockerfile.alpine b/Dockerfile.alpineindex 3d2198bf08..09efe25294 100644--- a/Dockerfile.alpine+++ b/Dockerfile.alpine@@ -13,11 +13,9 @@ RUN npm ci && \rm -rf dist/node_modules && \mv dist/* \start-docker.sh \- package-lock.json \/usr/src/app/ && \rm -rf /usr/src/app/build-#TODO: move package-lock copying into copy-dist#TODO: improve node_modules handling in copy-dist/Dockerfile -> remove duplicated work# currently copy-dist will copy certain node_module folders, but in the Dockerfile we delete them again (to keep image size down),# as we install necessary dependencies in runtime buildstage anywaysdiff --git a/bin/copy-dist.ts b/bin/copy-dist.tsindex c8911022ac..289334321c 100644--- a/bin/copy-dist.ts+++ b/bin/copy-dist.ts@@ -26,6 +26,8 @@ try {"./translations","./db","./config-sample.ini",+ "./package-lock.json",+ "./package.json","./src/views/","./src/etapi/etapi.openapi.yaml","./src/routes/api/openapi.json",