Soaravox commited on
Commit
c9df9cc
·
verified ·
1 Parent(s): 51b0176

Revert to fast AsyncInferenceClient API

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -17
Dockerfile CHANGED
@@ -1,27 +1,10 @@
1
  FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
-
5
- # Copy and install basic Python packages only (fast, no C++ needed)
6
  COPY requirements.txt .
7
  RUN pip install --no-cache-dir -r requirements.txt
8
-
9
- # Copy application code
10
  COPY . .
11
-
12
- # Create directories for model cache and runtime packages
13
- RUN mkdir -p /app/models /app/packages && chmod -R 777 /app
14
-
15
- # Point HuggingFace cache to writable directory
16
- ENV HF_HOME=/app/models
17
- # Runtime-installed packages path
18
- ENV PYTHONPATH="/app/packages:$PYTHONPATH"
19
-
20
- # Set permissions for HuggingFace Spaces
21
  RUN chown -R 1000:1000 /app
22
  USER 1000
23
-
24
  EXPOSE 7860
25
-
26
- # Start FastAPI immediately - model installs in background thread
27
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.10-slim
2
 
3
  WORKDIR /app
 
 
4
  COPY requirements.txt .
5
  RUN pip install --no-cache-dir -r requirements.txt
 
 
6
  COPY . .
 
 
 
 
 
 
 
 
 
 
7
  RUN chown -R 1000:1000 /app
8
  USER 1000
 
9
  EXPOSE 7860
 
 
10
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]