summaryrefslogtreecommitdiff
path: root/images_build/client/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'images_build/client/Dockerfile')
-rw-r--r--images_build/client/Dockerfile21
1 files changed, 10 insertions, 11 deletions
diff --git a/images_build/client/Dockerfile b/images_build/client/Dockerfile
index e42b6b7..7965475 100644
--- a/images_build/client/Dockerfile
+++ b/images_build/client/Dockerfile
@@ -1,20 +1,19 @@
-# Start python3.6.9-alpine3.10 to build python:unitest
-FROM python:3.6.9-alpine3.10
-
+FROM python:3.9-alpine
ADD dign_client /opt/dign_client
RUN sed -i s@/dl-cdn.alpinelinux.org/@/mirrors.ustc.edu.cn/@g /etc/apk/repositories \
&& apk update \
&& apk add curl-dev gcc libc-dev curl gzip libpcap-dev\
- && pip3 install pycurl \
- && pip3 install httpstat \
- && pip3 install CIUnitTest \
- && pip3 install pytelegraf \
- && pip3 install dnspython \
- && pip3 install prettytable \
- && pip3 install pyyaml \
- && pip3 install scapy \
+ && python3 -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple \
+ && python3 -m pip install pycurl \
+ && python3 -m pip install httpstat \
+ && python3 -m pip install CIUnitTest \
+ && python3 -m pip install pytelegraf \
+ && python3 -m pip install dnspython \
+ && python3 -m pip install prettytable \
+ && python3 -m pip install pyyaml \
+ && python3 -m pip install scapy \
&& mv /opt/dign_client/etc/client.conf /opt/dign_client/etc/client.conf.sample
WORKDIR /opt/dign_client