rahul7star commited on
Commit
2534d77
·
verified ·
1 Parent(s): 6e71f95

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -13
Dockerfile CHANGED
@@ -1,16 +1,8 @@
1
- FROM python:3.10-slim
2
 
3
- WORKDIR /app
4
-
5
- # Install dependencies
6
  COPY requirements.txt .
7
- RUN pip install --no-cache-dir -r requirements.txt
8
-
9
- # Copy FastAPI app
10
- COPY app.py .
11
-
12
- # Expose the port Hugging Face Spaces expects
13
- EXPOSE 7860
14
 
15
- # Start the FastAPI app
16
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM python:3.10
2
 
3
+ RUN apt update && apt install -y git
 
 
4
  COPY requirements.txt .
5
+ RUN pip install -r requirements.txt
6
+ COPY . .
 
 
 
 
 
7
 
8
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]