Watchhrr commited on
Commit
040aca1
·
verified ·
1 Parent(s): 1a295e6

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Python ka image use karenge
2
+ FROM python:3.9
3
+
4
+ # Working directory set karenge
5
+ WORKDIR /code
6
+
7
+ # Requirements copy karke install karenge
8
+ COPY ./requirements.txt /code/requirements.txt
9
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
10
+
11
+ # Baaki saari files (app.py aur DB) copy karenge
12
+ COPY . .
13
+
14
+ # FastAPI ko port 7860 par chalayenge (HF yahi mangta hai)
15
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]