Skip to content

Commit 93659bb

Browse files
committed
Change Dockerfile of user-service to drop binding
1 parent d3c0cd6 commit 93659bb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
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-
- ./user-service/:/user-service
20+
- /user-service/node_modules
2121
env_file:
2222
- user-service/.env
2323
extra_hosts:

user-service/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ WORKDIR /user-service
55
# TODO: multistage build
66
COPY package*.json ./
77
RUN npm install
8+
RUN npm rebuild bcrypt --build-from-source
89
COPY . .
910
EXPOSE 3001
1011
CMD ["npm", "run", "start"]

0 commit comments

Comments
 (0)