js渲染学习之pychrome

一、资源

https://github.com/fate0/pychrome

https://chromedevtools.github.io/devtools-protocol/tot/Network

二、

 

三、打包成docker镜像


# base image
#FROM centos
FROM python:2.7
# MAINTAINER
MAINTAINER guomei@360.cn
RUN apt-get update -qqy\
&& apt-get install -qqy wget dumb-init gnupg ca-certificates apt-transport-https\
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN dpkg -i google-chrome*; apt-get -f install -y
ADD requirements.txt requirements.txt
RUN pip install -r requirements.txt
COPY ./mouse-js /app/mouse-js
WORKDIR /app
#EXPOSE 9023
CMD ["python","/app/mouse-js/app.py"]

docker build -t pychrome/mouse-js .

docker run -d -p 9086:9086 pychrome/mouse-js

You May Also Like

About the Author: daidai5771

发表评论

电子邮件地址不会被公开。 必填项已用*标注