File size: 610 Bytes
70cf7cb
 
 
 
 
 
 
 
 
 
 
 
 
 
5710608
70cf7cb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
33
34
35
36
FROM python:3.9

# Install dependencies
RUN apt-get update && apt-get install -y \
    curl \
    unzip \
    xvfb \
    libxi6 \
    libgconf-2-4 \
    libxtst6 \
    libxss1 \
    libnss3 \
    libasound2

# Install playwright
RUN pip install playwright

# Install browser dependencies
RUN playwright install

# Set up virtual environment
RUN python -m venv venv
ENV PATH="/venv/bin:$PATH"

# Install Python dependencies
COPY requirements.txt .
RUN pip install -r requirements.txt

# Set the working directory
WORKDIR /app

# Copy the code into the container
COPY . .

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