This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tsg-tsg-diagnose/images_build/client/Dockerfile
2024-11-07 10:31:09 +08:00

22 lines
827 B
Docker

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\
&& 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
CMD tail -f /dev/null