1234567891011121314151617181920212223242526 |
- FROM python:3.9-slim
- <<<<<<< HEAD
- RUN apt-get update && apt-get install -y wget curl gnupg2 unzip libglib2.0-0 libnss3 libgconf-2-4 libfontconfig1 libfreetype6 libxi6 libxcursor1 libxcomposite1 libasound2 libxdamage1 libxtst6 libxrandr2 libcairo2 libpango-1.0-0 libatk1.0-0 libatk-bridge2.0-0 libgtk-3-0 xvfb psutils procps
- =======
- ##This container needs work before the logic will run propperly
- RUN apt-get update && apt-get install -y wget curl gnupg2 unzip libglib2.0-0 libnss3 libgconf-2-4 libfontconfig1 libfreetype6 libxi6 libxcursor1 libxcomposite1 libasound2 libxdamage1 libxtst6 libxrandr2 libcairo2 libpango-1.0-0 libatk1.0-0 libatk-bridge2.0-0 libgtk-3-0 xvfb psutils
- >>>>>>> 5c1f688302cc099a159cf8fd80e03febeb938150
- RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
- RUN 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
- RUN wget -O /tmp/chromedriver.zip https://chromedriver.storage.googleapis.com/$(curl -s https://chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip \
- && unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/
- RUN mkdir /selenium_bot
- COPY selenium_bot-headless.py .
- COPY requirements.txt /requirements.txt
- RUN pip install -r /requirements.txt
- CMD ["bash", "-c", "Xvfb :99 -screen 0 1024x768x24 -ac +extension GLX +render -noreset & export DISPLAY=:99 && python selenium_bot-headless.py"]
|