|
@@ -4,53 +4,38 @@ RUN apt update -y \
|
|
|
&& apt install --no-install-recommends --no-install-suggests -y tmux \
|
|
|
&& apt-get clean \
|
|
|
&& apt-get autoremove \
|
|
|
- && rm -rf /var/lib/apt/lists/* \
|
|
|
- && wget https://git.io/me.py \
|
|
|
- && wget https://raw.githubusercontent.com/hongwenjun/srgb/master/python/html2md.py \
|
|
|
&& python3 -m pip install --upgrade pip \
|
|
|
&& pip3 install setuptools \
|
|
|
&& pip3 install --upgrade pip requests \
|
|
|
- && pip3 install html2text \
|
|
|
+ && rm -rf /var/lib/apt/lists/*
|
|
|
+
|
|
|
+RUN mkdir /app \
|
|
|
+ && wget https://git.io/me.py \
|
|
|
+ && wget https://raw.githubusercontent.com/hongwenjun/srgb/master/python/html2md.py \
|
|
|
+ && pip3 install html2text pillow \
|
|
|
&& pip3 install dnspython bson feedparser qbittorrent-api pymongo func_timeout honeybadger \
|
|
|
&& pip3 install scrapy \
|
|
|
- && pip3 install beautifulsoup4 html5lib ipip-ipdb
|
|
|
-
|
|
|
+ && pip3 install beautifulsoup4 html5lib ipip-ipdb \
|
|
|
+ && rm -rf /usr/share/python-wheels/*
|
|
|
|
|
|
EXPOSE 8000/tcp
|
|
|
-
|
|
|
-VOLUME /app
|
|
|
-
|
|
|
CMD ["python3"]
|
|
|
|
|
|
-
|
|
|
################################################################################
|
|
|
-
|
|
|
# docker build -t python3 .
|
|
|
-
|
|
|
# docker run --rm -it python3
|
|
|
-
|
|
|
# docker run --rm -it python3 python3 -i me.py
|
|
|
-
|
|
|
# docker run --rm -it python3 python3 html2md.py https://262235.xyz
|
|
|
-
|
|
|
# docker build -t hongwenjun/python3 .
|
|
|
-
|
|
|
# docker push hongwenjun/python3
|
|
|
-
|
|
|
################################################################################
|
|
|
-
|
|
|
# docker run -d -p 8000:8000 --restart=always \
|
|
|
# -v /app:/app --name python3 \
|
|
|
# hongwenjun/python3 \
|
|
|
# python3 -m http.server 8000
|
|
|
#
|
|
|
# docker exec -it python3 bash
|
|
|
-#
|
|
|
# tmux -u
|
|
|
-#
|
|
|
# docker exec -it python3 bash
|
|
|
-#
|
|
|
# tmux -u a
|
|
|
-
|
|
|
################################################################################
|
|
|
-
|