subbunanepalli commited on
Commit
677c2e3
·
verified ·
1 Parent(s): 61bd2fa

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Set environment
4
+ WORKDIR /app
5
+
6
+ # Install dependencies
7
+ COPY requirements.txt .
8
+ RUN pip install --no-cache-dir -r requirements.txt
9
+
10
+ # Copy app and model files
11
+ COPY app.py .
12
+ COPY models/ ./models/
13
+
14
+ # Run app
15
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]