File size: 738 Bytes
bf883c3
4486eda
bf883c3
4486eda
 
 
 
 
 
 
 
 
 
b85055d
 
bf883c3
908cb9c
4486eda
bf883c3
4486eda
bf883c3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3.10

WORKDIR /home/user/app

RUN apt-get update && apt-get install -y wget unzip curl \
    fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 libatk1.0-0 \
    libcups2 libdbus-1-3 libgdk-pixbuf2.0-0 libnspr4 libnss3 libx11-xcb1 \
    libxcomposite1 libxdamage1 libxrandr2 xdg-utils libgbm1 chromium-driver

RUN wget -q -O google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
    && dpkg -i google-chrome.deb || apt-get -f install -y \
    && rm google-chrome.deb

RUN chmod +x /usr/bin/google-chrome-stable && chmod +x /usr/bin/chromedriver

COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

CMD ["python", "app.py"]