| |
| FROM python:3.8-slim |
|
|
| |
| WORKDIR /app |
|
|
| |
| |
|
|
| |
| RUN apt update && apt install -y unzip wget gnupg && wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - |
|
|
| |
| RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' |
|
|
| |
| RUN apt-get update && apt-get install -y google-chrome-stable \ |
| && apt-get clean && rm -rf /var/lib/apt/lists/* |
|
|
| RUN wget -O chromedriver.zip "https://storage.googleapis.com/chrome-for-testing-public/126.0.6478.62/linux64/chromedriver-linux64.zip" \ |
| && unzip chromedriver.zip -d /usr/local/bin/ \ |
| && mv /usr/local/bin/chromedriver-linux64/chromedriver /usr/local/bin/ \ |
| && rm -rf /usr/local/bin/chromedriver-linux64 chromedriver.zip |
| RUN chmod 777 /usr/local/bin/chromedriver |
| COPY . . |
| |
| RUN pip install --no-cache-dir -r requirements.txt |
|
|
| |
| EXPOSE 3000 |
|
|
| |
| ENTRYPOINT ["python", "./main.py"] |