Amanprime commited on
Commit
84a8b99
·
verified ·
1 Parent(s): 052d333

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ WORKDIR /code
4
+
5
+ # Copy your requirements first for better caching
6
+ COPY ./requirements.txt /code/requirements.txt
7
+
8
+ # Install dependencies
9
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
10
+
11
+ # Copy all your files (app.py, index.html) into the container
12
+ COPY . .
13
+
14
+ # Start the FastAPI app using Uvicorn on port 7860 (Required by HF Spaces)
15
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]