randomF0rm4t

Untitled

Mar 8th, 2024
401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. FROM python:latest
  2.  
  3. WORKDIR /usr/app/src
  4. COPY . ./
  5.  
  6. #Install Chrome
  7. RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
  8. RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
  9. RUN apt-get -y update
  10. RUN apt-get install -y google-chrome-stable
  11. RUN apt-get install -yqq unzip
  12. RUN wget -O /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`/chromedriver_linux64.zip
  13. RUN unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/
  14.  
  15. # Install Python Libraries
  16. RUN pip install -r requirements.txt
  17.  
  18. # Run
  19. CMD [ "python", "./test.py"]
Advertisement
Add Comment
Please, Sign In to add comment