Skip to content

Commit 22c2d59

Browse files
committed
chore(Dockerfile): 优化 JA3 版本依赖项安装
1 parent 562b19e commit 22c2d59

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Dockerfile.ja3

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@ RUN sed -i 's/mirrors.ustc.edu.cn/dl-cdn.alpinelinux.org/g' /etc/apk/repositorie
2727
chmod +x /usr/src/app/update.sh && \
2828
ln -s /usr/src/app/update.sh /bin/update && \
2929
apk add --update --no-cache python3 py3-six py3-markupsafe py3-pycryptodome py3-tornado \
30-
py3-wrapt py3-packaging py3-greenlet py3-urllib3 py3-cryptography py3-aiosignal \
31-
py3-async-timeout py3-attrs py3-frozenlist py3-multidict py3-charset-normalizer \
32-
py3-aiohttp py3-typing-extensions py3-yarl py3-cffi && \
30+
py3-wrapt py3-packaging py3-greenlet py3-urllib3 py3-cryptography py3-aiosignal \
31+
py3-async-timeout py3-attrs py3-frozenlist py3-multidict py3-charset-normalizer \
32+
py3-aiohttp py3-typing-extensions py3-yarl py3-cffi && \
3333
[[ $(getconf LONG_BIT) = "32" ]] && \
3434
echo "Tips: 32-bit systems do not support ddddocr, so there is no need to install numpy and opencv-python" || \
3535
apk add --update --no-cache py3-opencv py3-pillow && \
3636
apk add --no-cache --virtual .build_deps cmake make perl autoconf g++ automake \
37-
linux-headers libtool util-linux py3-pip py3-setuptools py3-wheel python3-dev py3-numpy-dev && \
37+
linux-headers libtool util-linux py3-pip py3-setuptools py3-wheel python3-dev py3-numpy-dev && \
38+
sed -i '/pycurl/d' requirements.txt && \
3839
sed -i '/ddddocr/d' requirements.txt && \
3940
sed -i '/packaging/d' requirements.txt && \
4041
sed -i '/wrapt/d' requirements.txt && \

0 commit comments

Comments
 (0)