File size: 433 Bytes
36fcbf8
 
 
 
0add691
36fcbf8
f3a62ee
36fcbf8
 
 
 
0add691
36fcbf8
 
0add691
36fcbf8
 
0add691
36fcbf8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3.9-slim

WORKDIR /app

# Install dependencies
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir --default-timeout=100 --retries=5 -r requirements.txt

ENV HF_HOME=/app/.cache
RUN mkdir -p $HF_HOME && chown -R 1000:1000 $HF_HOME

# Copy the app files
COPY . .

# Expose the port
EXPOSE 7860

# START THE SERVER (This line is critical!)
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]