Skip to content

Commit c5365e7

Browse files
authored
install python to wedpr-mpc (#127)
1 parent 8b083fc commit c5365e7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docker-files/cpp/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,14 @@ CMD ["--version"]
6767
FROM fiscoorg/wedpr-mpc-base-ubuntu:v3.0.0 as wedpr-mpc-service
6868
6969

70-
RUN apt-get -q update && apt-get install -qy --no-install-recommends vim libkrb5-dev \
70+
RUN apt-get -q update && apt-get install -qy --no-install-recommends vim libkrb5-dev python3.11 python3-pip python3-dev telnet tcpdump \
71+
&& rm -f /usr/bin/python && ln -s /usr/bin/python3.11 /usr/bin/python \
72+
&& rm -f /usr/bin/python3 && ln -s /usr/bin/python3.11 /usr/bin/python3 \
7173
&& ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
7274
&& apt-get install -qy --no-install-recommends tzdata \
7375
&& dpkg-reconfigure --frontend noninteractive tzdata \
7476
&& rm -rf /var/lib/apt/lists/*
7577

76-
7778
COPY --from=builder /WeDPR-Component/cpp/build/bin/wedpr-mpc /usr/local/bin/wedpr-mpc
7879

7980
ENTRYPOINT ["/usr/local/bin/wedpr-mpc"]

0 commit comments

Comments
 (0)