Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Task/use npm ci in Dockerfile (#8039)

Thomas Kaul75576266bb6f
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c3280f51ca..6638c81f4d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
+- Changed the installation of the dependencies from `npm install` to `npm ci` in the `Dockerfile`
- Upgraded `@simplewebauthn/browser` and `@simplewebauthn/server` from version `13.3` to `14.0`
- Upgraded `nestjs` from version `11.2.3` to `11.2.6`
diff --git a/Dockerfile b/Dockerfile
index e73cd73e65..ebee4e60d1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -20,7 +20,7 @@ COPY ./package.json package.json
COPY ./package-lock.json package-lock.json
COPY ./prisma/schema.prisma prisma/
-RUN npm install
+RUN npm ci
COPY ./apps apps/
COPY ./libs libs/
@@ -39,7 +39,7 @@ WORKDIR /ghostfolio/dist/apps/api
# package-lock.json needs to be used to ensure the same versions
COPY ./package-lock.json /ghostfolio/dist/apps/api/
-RUN npm install
+RUN npm ci
COPY .config /ghostfolio/dist/apps/api/.config/
COPY prisma /ghostfolio/dist/apps/api/prisma/