Skip to content

Commit d3c0cd6

Browse files
committed
Use volume binding to completely bind user service
Probably not the best idea, as this forces each user to have to run npm install locally into a folder - however this workaround resolves the bcrypt issue.
1 parent dbdd7a6 commit d3c0cd6

File tree

5 files changed

+1381
-3
lines changed

5 files changed

+1381
-3
lines changed

compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ services:
1717
user-service:
1818
build: user-service
1919
volumes:
20-
- /app/node_modules
20+
- ./user-service/:/user-service
2121
env_file:
2222
- user-service/.env
2323
extra_hosts:

peerprep/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ COPY package*.json ./
77
RUN npm install
88
COPY . .
99
EXPOSE 3000
10-
CMD npm run build && npm run start
10+
CMD ["npm", "run", "dev"]

peerprep/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"private": true,
55
"scripts": {
66
"dev": "next dev",
7+
"prebuild": "next telemetry disable",
78
"build": "next build",
89
"start": "next start",
910
"lint": "next lint"

user-service/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ COPY package*.json ./
77
RUN npm install
88
COPY . .
99
EXPOSE 3001
10-
CMD ["node", "index.js"]
10+
CMD ["npm", "run", "start"]

0 commit comments

Comments
 (0)