refactor: remove global bcryptjs installation and add as a dependency

- Removed the global installation of bcryptjs from the Dockerfile.
- Added bcryptjs as a dependency in package.json to ensure it is included in the project build.

This change streamlines the Docker image setup by managing bcryptjs through package.json, improving dependency management.
This commit is contained in:
Rohit Amarnath 2025-09-23 13:14:24 -04:00
parent 008d5a36f1
commit 6f04b1449f
2 changed files with 1 additions and 3 deletions

View file

@ -14,9 +14,6 @@ RUN apt-get update && apt-get install -y \
RUN yarn install
# Install bcryptjs globally for password hashing
RUN npm install -g bcryptjs
ADD /packages/db ./packages/db
ADD /packages/db/setup.sh ./packages/db/setup.sh

View file

@ -10,6 +10,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"bcryptjs": "^2.4.3",
"dotenv": "^8.2.0",
"pg": "^8.3.0",
"postgrator": "^4.1.1",