mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
build: copy package-lock.json into dist folder as well
This commit is contained in:
parent
38690053a8
commit
907b8c503e
@ -13,11 +13,9 @@ RUN npm ci && \
|
|||||||
rm -rf dist/node_modules && \
|
rm -rf dist/node_modules && \
|
||||||
mv dist/* \
|
mv dist/* \
|
||||||
start-docker.sh \
|
start-docker.sh \
|
||||||
package-lock.json \
|
|
||||||
/usr/src/app/ && \
|
/usr/src/app/ && \
|
||||||
rm -rf /usr/src/app/build
|
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
|
#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),
|
# 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
|
# as we install necessary dependencies in runtime buildstage anyways
|
||||||
|
@ -13,11 +13,9 @@ RUN npm ci && \
|
|||||||
rm -rf dist/node_modules && \
|
rm -rf dist/node_modules && \
|
||||||
mv dist/* \
|
mv dist/* \
|
||||||
start-docker.sh \
|
start-docker.sh \
|
||||||
package-lock.json \
|
|
||||||
/usr/src/app/ && \
|
/usr/src/app/ && \
|
||||||
rm -rf /usr/src/app/build
|
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
|
#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),
|
# 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
|
# as we install necessary dependencies in runtime buildstage anyways
|
||||||
|
@ -26,6 +26,8 @@ try {
|
|||||||
"./translations",
|
"./translations",
|
||||||
"./db",
|
"./db",
|
||||||
"./config-sample.ini",
|
"./config-sample.ini",
|
||||||
|
"./package-lock.json",
|
||||||
|
"./package.json",
|
||||||
"./src/views/",
|
"./src/views/",
|
||||||
"./src/etapi/etapi.openapi.yaml",
|
"./src/etapi/etapi.openapi.yaml",
|
||||||
"./src/routes/api/openapi.json",
|
"./src/routes/api/openapi.json",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user