File size: 471 Bytes
957349b
567a1a3
09e58aa
567a1a3
 
09e58aa
505a3d0
09e58aa
 
567a1a3
 
09e58aa
957349b
567a1a3
09e58aa
 
 
68b5071
505a3d0
567a1a3
09e58aa
505a3d0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.10-slim

# Set working directory
WORKDIR /app

# Copy requirements.txt first (better caching)
COPY requirements.txt .

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

# Copy the entire app
COPY . .

# Create uploads folder with proper permissions
RUN mkdir -p /app/uploads && chmod -R 777 /app/uploads

# Expose port
EXPOSE 7860

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