File size: 552 Bytes
0e3b134
a9460fe
 
 
 
 
 
 
 
 
 
 
 
 
 
0e3b134
 
a9460fe
 
 
 
 
 
 
 
 
 
 
0e3b134
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM python:3.13-slim

WORKDIR /app

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

# Copy requirements
COPY requirements.txt .

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

# Copy application
COPY app.py .

# Create directories for images
RUN mkdir -p images/uploads images/gallery

# Expose port
EXPOSE 7860

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