1 Star 0 Fork 0

jiangstack/sonic

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 466 Bytes
一键复制 编辑 原始数据 按行查看 历史
Valerian Saliou 提交于 2020-06-29 14:48 . Fix wrong release path
FROM rustlang/rust:nightly-buster-slim AS build
RUN apt-get update
RUN apt-get install -y build-essential clang
WORKDIR /app
COPY . /app
RUN cargo clean && cargo build --release --target x86_64-unknown-linux-gnu
RUN strip ./target/x86_64-unknown-linux-gnu/release/sonic
FROM debian:buster-slim
WORKDIR /usr/src/sonic
COPY --from=build /app/target/x86_64-unknown-linux-gnu/release/sonic /usr/local/bin/sonic
CMD [ "sonic", "-c", "/etc/sonic.cfg" ]
EXPOSE 1491
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jiangstack/sonic.git
[email protected]:jiangstack/sonic.git
jiangstack
sonic
sonic
master

搜索帮助