Dockerfile-merge 1.5 KB

1234567891011121314151617181920212223242526
  1. FROM python:3.9-slim
  2. <<<<<<< HEAD
  3. 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
  4. =======
  5. ##This container needs work before the logic will run propperly
  6. 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
  7. >>>>>>> 5c1f688302cc099a159cf8fd80e03febeb938150
  8. RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
  9. RUN echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list
  10. RUN apt-get update && apt-get install -y google-chrome-stable
  11. RUN wget -O /tmp/chromedriver.zip https://chromedriver.storage.googleapis.com/$(curl -s https://chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip \
  12. && unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/
  13. RUN mkdir /selenium_bot
  14. COPY selenium_bot-headless.py .
  15. COPY requirements.txt /requirements.txt
  16. RUN pip install -r /requirements.txt
  17. CMD ["bash", "-c", "Xvfb :99 -screen 0 1024x768x24 -ac +extension GLX +render -noreset & export DISPLAY=:99 && python selenium_bot-headless.py"]