rahul7star commited on
Commit
cc3d0ec
·
verified ·
1 Parent(s): dcb4c2d

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Prevent GPU usage
4
+ ENV CUDA_VISIBLE_DEVICES=""
5
+ ENV PYTHONUNBUFFERED=1
6
+
7
+ WORKDIR /app
8
+
9
+ # System deps (minimal)
10
+ RUN apt-get update && apt-get install -y \
11
+ git \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+ # Install Python deps
15
+ COPY requirements.txt .
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ # Copy full repo (including src/)
19
+ COPY . .
20
+
21
+ EXPOSE 7860
22
+
23
+ CMD ["uvicorn", "app-fast:app", "--host", "0.0.0.0", "--port", "7860"]