File tree Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,19 @@ services:
33
33
- peerprep-network
34
34
env_file :
35
35
- ./question-service/.env.dev
36
+ user-service :
37
+ image : asia-southeast1-docker.pkg.dev/cs3219-g11-peerprep/cs3219-g11-repo/user-svc:latest
38
+ build :
39
+ context : ./user-service
40
+ dockerfile : Dockerfile
41
+ ports :
42
+ - " 3001:3001"
43
+ environment :
44
+ - NODE_ENV=production
45
+ networks :
46
+ - peerprep-network
47
+ env_file :
48
+ - ./user-service/.env
36
49
networks :
37
50
peerprep-network :
38
51
driver : bridge
Original file line number Diff line number Diff line change
1
+ Dockerfile
2
+ .dockerignore
3
+ node_modules
Original file line number Diff line number Diff line change
1
+
2
+ FROM node:18-alpine
3
+
4
+ WORKDIR /usr/src/app
5
+
6
+ RUN npm install -g pnpm
7
+
8
+ COPY pnpm-lock.yaml package.json ./
9
+
10
+ RUN pnpm install
11
+
12
+ COPY . .
13
+
14
+ EXPOSE 3001
15
+
16
+ CMD ["pnpm" , "start" ]
You can’t perform that action at this time.
0 commit comments