1 Star 0 Fork 0

cita-cloud/crypto_sm

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 755 Bytes
一键复制 编辑 原始数据 按行查看 历史
rink1969 提交于 2023-02-10 17:32 . upgrade grpc probe
FROM rust:slim-bullseye AS buildstage
WORKDIR /build
ENV PROTOC_NO_VENDOR 1
RUN rustup component add rustfmt && \
apt-get update && \
apt-get install -y --no-install-recommends wget protobuf-compiler && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
GRPC_HEALTH_PROBE_VERSION=v0.4.15 && \
wget -qO /bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 && \
chmod +x /bin/grpc_health_probe
COPY . /build/
RUN cargo build --release
FROM debian:bullseye-slim
RUN useradd -m chain
USER chain
COPY --from=buildstage /build/target/release/crypto /usr/bin/
COPY --from=buildstage /bin/grpc_health_probe /usr/bin/
CMD ["crypto"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cita-cloud/crypto_sm.git
git@gitee.com:cita-cloud/crypto_sm.git
cita-cloud
crypto_sm
crypto_sm
main

搜索帮助