File size: 351 Bytes
eea5e88
 
2010e3f
 
 
eea5e88
 
2010e3f
132e595
 
 
 
eea5e88
 
2010e3f
eea5e88
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:3.11-slim

# Set a writable Hugging Face cache directory
ENV TRANSFORMERS_CACHE=/tmp/huggingface

WORKDIR /app

# Copy and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy the rest of your app
COPY . .

# Run the app
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]