1 Star 0 Fork 0

bqw_5189/rust-actix-example

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 600 Bytes
一键复制 编辑 原始数据 按行查看 历史
ARG BASE_IMAGE=ekidd/rust-musl-builder:latest
# Our first FROM statement declares the build environment.
FROM ${BASE_IMAGE} AS builder
# Add our source code.
ADD . ./
# Fix permissions on source code.
RUN sudo chown -R rust:rust /home/rust
# Build our application.
RUN cargo build --release
# Now, we need to build our _real_ Docker container, copying in `rust-actix-example`.
FROM alpine:latest
RUN apk --no-cache add ca-certificates
COPY --from=builder \
/home/rust/src/target/x86_64-unknown-linux-musl/release/rust-actix-example \
/usr/local/bin/
CMD /usr/local/bin/rust-actix-example
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Rust
1
https://gitee.com/bqw_5189/rust-actix-example.git
git@gitee.com:bqw_5189/rust-actix-example.git
bqw_5189
rust-actix-example
rust-actix-example
master

搜索帮助