File tree Expand file tree Collapse file tree 3 files changed +19
-11
lines changed
Expand file tree Collapse file tree 3 files changed +19
-11
lines changed Original file line number Diff line number Diff line change 1+ .github
2+ /target /
Original file line number Diff line number Diff line change @@ -23,33 +23,29 @@ RUN ln -s $HOME/.cargo/bin/rustup /usr/local/bin/rustup
2323RUN ln -s $HOME/.cargo/bin/cargo /usr/local/bin/cargo
2424
2525# 导入cargo配置
26- COPY proxy_config $HOME/.cargo/config
26+ COPY cargo.config $HOME/.cargo/config.toml
2727
2828WORKDIR /satex
2929
3030# 复制文件
31- COPY src ./src
32- COPY crates ./crates
33- COPY Cargo.toml .
34- COPY Cargo.lock .
31+ COPY . .
3532
3633# 编译
3734RUN cargo build --release
3835
3936FROM alpine:latest
4037
41- WORKDIR /satex
38+ WORKDIR /app
4239
4340# 复制构建文件
44- COPY --from=build-env /satex/target/release/satex ./bin/
41+ COPY --from=build-env /satex/target/release/satex .
4542
4643# 复制配置文件
47- COPY examples/docker/satex.yaml ./conf/
48- COPY examples/docker/static.yaml ./conf/
49- COPY examples/resources ./static/
44+ COPY ./satex.yaml .
45+
5046
5147# 暴露端口
5248EXPOSE 80
5349
5450# 启动
55- ENTRYPOINT ["/satex/bin/ satex" , "-c" , "/satex/conf /satex.yaml" ]
51+ ENTRYPOINT ["/app/ satex" , "-c" , "/app /satex.yaml" ]
Original file line number Diff line number Diff line change 1+ [source.crates-io]
2+ replace-with = 'rsproxy-sparse'
3+ [source.rsproxy]
4+ registry = "https://rsproxy.cn/crates.io-index"
5+ [source.rsproxy-sparse]
6+ registry = "sparse+https://rsproxy.cn/index/"
7+ [registries.rsproxy]
8+ index = "https://rsproxy.cn/crates.io-index"
9+ [net]
10+ git-fetch-with-cli = true
You can’t perform that action at this time.
0 commit comments