File size: 416 Bytes
642ce32
 
 
 
 
 
 
 
 
 
 
520113d
65b7612
642ce32
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Use an official Python base image
FROM python:3.10-slim

# Set environment variables
ENV PORT 7860
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1

# Set working directory
WORKDIR /app


RUN pip install fastapi uvicorn jinja2 requests python-multipart

# Copy the app files
COPY . .

# Expose port for Hugging Face
EXPOSE 7860

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