File size: 384 Bytes
d8efdc1
01393b5
d8efdc1
939143a
d8efdc1
 
 
 
811c0c0
d8efdc1
 
 
298dbc1
d8efdc1
8807c5e
fc731ee
d8efdc1
10a005e
628b9fc
d8efdc1
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.10-slim

WORKDIR /app

# Install system dependencies
RUN apt-get update && apt-get install -y \
    libmagic1 \
    && rm -rf /var/lib/apt/lists/*

# Copy requirements first for caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy application code
COPY . .

# Expose port
EXPOSE 7860

# Run the application
CMD ["python", "app.py"]