File size: 480 Bytes
8a14cfe
57d02cb
8a14cfe
 
57d02cb
8a14cfe
 
57d02cb
8a14cfe
 
57d02cb
8a14cfe
 
 
 
 
 
 
 
57d02cb
8a14cfe
 
57d02cb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Use official Python 3.9 image
FROM python:3.10-slim

# Set working directory
WORKDIR /app

# Copy requirements file
COPY requirements.txt .

# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Create cache directory with proper permissions
RUN mkdir -p /app/cache && chmod -R 777 /app/cache

# Copy application code
COPY . .

# Expose port 8000
EXPOSE 7860

# Start FastAPI with uvicorn
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]