build: copy package-lock.json into dist folder as well

This commit is contained in:
Panagiotis Papadopoulos 2025-03-05 09:01:21 +01:00 committed by Panagiotis Papadopoulos
parent 38690053a8
commit 907b8c503e
3 changed files with 2 additions and 4 deletions

View File

@ -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 anyways

View File

@ -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 anyways

View File

@ -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",