File size: 434 Bytes
2dbbb5e
06eb7dd
 
 
 
57c9a43
06eb7dd
2dbbb5e
06eb7dd
 
57c9a43
06eb7dd
 
 
 
2dbbb5e
06eb7dd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Dockerfile
FROM python:3.10-slim

WORKDIR /app

# Copy your requirements file and install dependencies
COPY requirements.txt .
# The installation process will now download torch and transformers
RUN pip install --no-cache-dir -r requirements.txt

# Copy all your local files into the container
COPY . .

EXPOSE 7860

# Command to run your FastAPI application
CMD ["uvicorn", "app_fastapi:app", "--host", "0.0.0.0", "--port", "7860"]