Skip to content

Commit

Permalink
modify dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ouyangkang committed Mar 8, 2024
1 parent 27d6750 commit 60d6f13
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Dockerfile.gitlab
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
FROM rust:1.74-slim as builder

WORKDIR /usr/src/
RUN mkdir ~/.cargo/ && touch ~/.cargo/config \
&& echo '[source.crates-io]' > ~/.cargo/config \
&& echo "replace-with = 'mirror'" >> ~/.cargo/config \
&& echo '[source.mirror]' > ~/.cargo/config \
&& echo 'registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"' >> ~/.cargo/config


COPY . .

Expand Down

0 comments on commit 60d6f13

Please sign in to comment.