Dockerfile 628 B

1234567891011121314151617181920212223
  1. FROM python:alpine3.14
  2. # update apk repo
  3. RUN echo "http://dl-4.alpinelinux.org/alpine/v3.14/main" >> /etc/apk/repositories && \
  4. echo "http://dl-4.alpinelinux.org/alpine/v3.14/community" >> /etc/apk/repositories
  5. # install chromedriver
  6. RUN apk update
  7. RUN apk add build-base
  8. RUN apk add libffi-dev
  9. RUN apk add mariadb-dev
  10. RUN apk add chromium chromium-chromedriver
  11. RUN apk add tmux
  12. # upgrade pip
  13. RUN pip3 install --upgrade pip
  14. RUN pip3 install bs4
  15. RUN pip3 install selenium-wire
  16. RUN pip3 install dataset
  17. RUN pip3 install mysqlclient
  18. RUN pip3 install selenium
  19. RUN pip3 install pandas
  20. RUN pip3 install pymysql
  21. RUN apk add bash