Przeglądaj źródła

Update Dockerfile

蘭雅sRGB 3 lat temu
rodzic
commit
181ec107d2
1 zmienionych plików z 15 dodań i 13 usunięć
  1. 15 13
      python3/Dockerfile

+ 15 - 13
python3/Dockerfile

@@ -1,24 +1,26 @@
 FROM debian:stable-slim
 RUN  apt update -y \
-  && apt install --no-install-recommends --no-install-suggests -y wget python3 python3-pip \
+  && apt install --no-install-recommends --no-install-suggests -y wget python3 python3-distutils \
   && apt install --no-install-recommends --no-install-suggests -y tmux  \
-  && apt-get clean  \
-  && apt-get autoremove  \
-  && python3 -m pip install --upgrade pip  \
-  && pip3 install setuptools  \
-  && pip3 install --upgrade  pip  requests  \
+  && wget https://bootstrap.pypa.io/get-pip.py  --no-check-certificate  \
+  && python3 get-pip.py \
+  && apt clean  && apt autoremove  \
   && rm -rf /var/lib/apt/lists/*
 
 RUN  mkdir -p /app && cd /app \ 
-  && pip3 install html2text  pillow  \
-  && pip3 install dnspython bson feedparser qbittorrent-api pymongo func_timeout honeybadger  \
-  && pip3 install scrapy  \
+  && pip3 install requests mysql-connector \
+  && pip3 install html2text  pillow   \
   && pip3 install beautifulsoup4  html5lib Flask ipip-ipdb \
-  && wget https://git.io/me.py  \
-  && wget https://raw.githubusercontent.com/hongwenjun/srgb/master/python/html2md.py  \
-  && wget https://raw.githubusercontent.com/hongwenjun/pillow_font/main/bitfont.py  \
+  && wget https://git.io/me.py  --no-check-certificate \
+  && wget https://raw.githubusercontent.com/hongwenjun/srgb/master/python/html2md.py --no-check-certificate \
+  && wget https://raw.githubusercontent.com/hongwenjun/pillow_font/main/bitfont.py  --no-check-certificate \
   && rm -rf /usr/share/python-wheels/*
-  
+
+#   && python3 -m pip install --upgrade pip  \
+#   && pip3 install setuptools  \
+#   && pip3 install dnspython bson feedparser qbittorrent-api pymongo func_timeout honeybadger  \
+#   && pip3 install scrapy  \
+
 WORKDIR /app
 EXPOSE 8000/tcp
 CMD ["python3"]