Skip to content

Commit

Permalink
fix: 修正 rust 源
Browse files Browse the repository at this point in the history
  • Loading branch information
wojiushixiaobai committed Nov 17, 2023
1 parent f0ed5a5 commit c34ffe5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions allinone/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ RUN set -ex \
tar -xf /opt/rust.tar.gz -C /opt/rust-install --strip-components=1; \
cd /opt/rust-install && ./install.sh; \
cd /opt && rm -rf /opt/rust-install /opt/rust.tar.gz; \
mkdir -p ${CARGO_HOME:-$HOME/.cargo}; \
echo -e '[source.crates-io]\nreplace-with = "ustc"\n\n[source.ustc]\nregistry = "sparse+https://mirrors.ustc.edu.cn/crates.io-index/"' > ${CARGO_HOME:-$HOME/.cargo}/config; \
fi

COPY --from=get-core /opt/jumpserver/poetry.lock /opt/jumpserver/pyproject.toml /opt/jumpserver/
Expand Down
2 changes: 2 additions & 0 deletions core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ RUN set -ex \
tar -xf /opt/rust.tar.gz -C /opt/rust-install --strip-components=1; \
cd /opt/rust-install && ./install.sh; \
cd /opt && rm -rf /opt/rust-install /opt/rust.tar.gz; \
mkdir -p ${CARGO_HOME:-$HOME/.cargo}; \
echo -e '[source.crates-io]\nreplace-with = "ustc"\n\n[source.ustc]\nregistry = "sparse+https://mirrors.ustc.edu.cn/crates.io-index/"' > ${CARGO_HOME:-$HOME/.cargo}/config; \
fi

COPY --from=stage-1 /opt/jumpserver/poetry.lock /opt/jumpserver/pyproject.toml /opt/jumpserver/
Expand Down

0 comments on commit c34ffe5

Please sign in to comment.