File size: 596 Bytes
d919708
419f982
d919708
b527ff3
7b25dd3
41c40b7
a53cb38
 
 
 
 
 
d919708
efa9887
 
 
ab0aad3
b527ff3
7b25dd3
 
d919708
 
fbbbd2c
 
 
419f982
efa9887
7b25dd3
ab0aad3
efa9887
 
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
31
32
FROM python:3.10-slim

# Set working directory
WORKDIR /app

# Install chromium-driver and build dependencies
RUN apt-get update && apt-get install -y \
    chromium-driver \
    git \
    gcc \
    libc-dev \
    && apt-get clean && rm -rf /var/lib/apt/lists/*

# Update pip
RUN pip install --upgrade pip

# Copy requirements.txt and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy all project files
COPY . .

# Verify files in /app
RUN ls -R /app

# Expose port 7860 for Gradio
EXPOSE 7860

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