| FROM ubuntu:20.04 |
|
|
| |
| ENV DEBIAN_FRONTEND=noninteractive |
|
|
| |
| RUN apt-get update && apt-get install -y \ |
| python3.9 \ |
| python3.9-distutils \ |
| wget \ |
| unzip \ |
| libxss1 \ |
| libappindicator1 \ |
| libindicator7 \ |
| fonts-liberation \ |
| libnss3 \ |
| xdg-utils |
|
|
| |
| RUN wget https://bootstrap.pypa.io/get-pip.py && python3.9 get-pip.py |
|
|
| |
| RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \ |
| && dpkg -i google-chrome-stable_current_amd64.deb || apt-get install -f -y \ |
| && rm google-chrome-stable_current_amd64.deb |
|
|
| |
| WORKDIR /app |
|
|
| |
| COPY requirements.txt . |
| RUN pip3.9 install --no-cache-dir -r requirements.txt chromedriver-autoinstaller |
|
|
| |
| COPY app.py . |
|
|
| |
| CMD ["python3.9", "app.py"] |