Skip to content

Commit

Permalink
Add option to replace Tsinghua source for Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: YoungHypo <[email protected]>
  • Loading branch information
YoungHypo committed Nov 16, 2024
1 parent 0fa36fe commit 4be6c6f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build_image/docker/cello-hlf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ RUN mkdir -p /var/hyperledger/production \
/chaincode/input \
/chaincode/output

# set apt source to Tsinghua mirror
# RUN echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian bookworm main contrib non-free" > /etc/apt/sources.list && \
# echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-updates main contrib non-free" >> /etc/apt/sources.list && \
# echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free" >> /etc/apt/sources.list

# Install development dependencies
RUN apt-get update \
&& apt-get install -y apt-utils python3-dev \
Expand Down
5 changes: 5 additions & 0 deletions build_image/docker/common/api-engine/Dockerfile.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
FROM python:3.8

# set apt source to Tsinghua mirror
# RUN echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian bookworm main contrib non-free" > /etc/apt/sources.list && \
# echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-updates main contrib non-free" >> /etc/apt/sources.list && \
# echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free" >> /etc/apt/sources.list

# Install software
RUN apt-get update \
&& apt-get install -y gettext-base graphviz libgraphviz-dev vim \
Expand Down

0 comments on commit 4be6c6f

Please sign in to comment.