rahul7star commited on
Commit
c297f23
·
verified ·
1 Parent(s): 24e6cb0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -11
Dockerfile CHANGED
@@ -1,23 +1,16 @@
1
  FROM python:3.10-slim
2
 
3
- # Prevent GPU usage
4
- ENV CUDA_VISIBLE_DEVICES=""
5
- ENV PYTHONUNBUFFERED=1
6
-
7
  WORKDIR /app
8
 
9
- # System deps (minimal)
10
- RUN apt-get update && apt-get install -y \
11
- git \
12
- && rm -rf /var/lib/apt/lists/*
13
-
14
- # Install Python deps
15
  COPY requirements.txt .
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
- # Copy full repo (including src/)
19
  COPY . .
20
 
 
21
  EXPOSE 7860
22
 
 
23
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
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 app + src
10
  COPY . .
11
 
12
+ # Expose the port Hugging Face Spaces expects
13
  EXPOSE 7860
14
 
15
+ # Start FastAPI
16
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]