Skip to content

Commit 1362064

Browse files
committed
Dockerman this
1 parent b33fe18 commit 1362064

File tree

5 files changed

+28
-0
lines changed

5 files changed

+28
-0
lines changed

docker-compose.dev.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,9 @@ services:
1818
target: dev
1919
volumes:
2020
- ./user-service/app:/app/app
21+
22+
matching-service:
23+
environment:
24+
- BUILD_ENV=dev
25+
volumes:
26+
- ./matching-service/app:/app/app

docker-compose.prod.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ services:
1111
user-service:
1212
build:
1313
target: prod
14+
15+
matching-service:
16+
environment:
17+
- BUILD_ENV=prod

docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,11 @@ services:
2828
- JWT_SECRET=$JWT_SECRET
2929
- EMAIL_ADDRESS=$EMAIL_ADDRESS
3030
- EMAIL_PASSWORD=$EMAIL_PASSWORD
31+
32+
matching-service:
33+
build:
34+
context: ./matching-service
35+
ports:
36+
- $MATCHING_SVC_PORT:$MATCHING_SVC_PORT
37+
environment:
38+
- PORT=$MATCHING_SVC_PORT

matching-service/.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
**/README.md
2+
**/.gitignore
3+
**/.venv

matching-service/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM python:3.12-slim AS base
2+
WORKDIR /app
3+
COPY requirements.txt .
4+
RUN python -m venv .venv
5+
RUN .venv/bin/pip install --no-cache-dir -r requirements.txt
6+
COPY . .
7+
CMD [".venv/bin/python", "app/main.py"]

0 commit comments

Comments
 (0)