anujakkulkarni commited on
Commit
544487f
·
verified ·
1 Parent(s): bcedf70

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use official Python image
2
+ FROM python:3.10
3
+
4
+ WORKDIR /app
5
+
6
+ COPY requirements.txt .
7
+ RUN pip install -r requirements.txt
8
+
9
+ COPY . .
10
+
11
+ # Expose port
12
+ EXPOSE 7860
13
+
14
+ # Start FastAPI with Uvicorn
15
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]