zeetay commited on
Commit
638561d
·
1 Parent(s): e4731a8

initial docker setup

Browse files
Files changed (2) hide show
  1. .dockerignore +4 -0
  2. Dockerfile +22 -0
.dockerignore ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ __pycache__/
2
+ .venv/
3
+ *.pyc
4
+ .env
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ---------- Backend Dockerfile ----------
2
+
3
+ # Use lightweight Python image
4
+ FROM python:3.13-slim
5
+
6
+ # Set working directory
7
+ WORKDIR /app
8
+
9
+ # Copy dependency files
10
+ COPY requirements.txt .
11
+
12
+ # Install dependencies
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # Copy source code
16
+ COPY backend .
17
+
18
+ # Expose FastAPI port
19
+ EXPOSE 8000
20
+
21
+ # Run FastAPI app
22
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]