1 Star 0 Fork 0

fanyangchu/quiche

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
Junho Choi 提交于 2021-09-01 18:46 . recovery: hystart++ draft 03
FROM rust:1.53 as build
WORKDIR /build
COPY deps/ ./deps/
COPY src/ ./src/
COPY tools/ ./tools/
COPY Cargo.toml .
RUN apt-get update && apt-get install -y cmake && \
rm -rf /var/lib/apt/lists/*
RUN cargo build --manifest-path tools/apps/Cargo.toml
##
## quiche-base: quiche image for apps
##
FROM debian:latest as quiche-base
RUN apt-get update && apt-get install -y ca-certificates && \
rm -rf /var/lib/apt/lists/*
COPY --from=build \
/build/tools/apps/target/debug/quiche-client \
/build/tools/apps/target/debug/quiche-server \
/usr/local/bin/
ENV PATH="/usr/local/bin/:${PATH}"
ENV RUST_LOG=info
##
## quiche-qns: quiche image for quic-interop-runner
## https://github.com/marten-seemann/quic-network-simulator
## https://github.com/marten-seemann/quic-interop-runner
##
FROM martenseemann/quic-network-simulator-endpoint:latest as quiche-qns
WORKDIR /quiche
COPY --from=build \
/build/tools/apps/target/debug/quiche-client \
/build/tools/apps/target/debug/quiche-server \
/build/tools/qns/run_endpoint.sh \
./
ENV RUST_LOG=trace
ENTRYPOINT [ "./run_endpoint.sh" ]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fanych/quiche.git
git@gitee.com:fanych/quiche.git
fanych
quiche
quiche
master

搜索帮助