chore: change base image to debian:bookworm-slim in runtime image (#191)

Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
Gaius 2024-01-03 14:32:10 +08:00 committed by GitHub
parent dbba6767bb
commit d5272875e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "dragonfly-client"
version = "0.1.5"
version = "0.1.6"
authors = ["The Dragonfly Developers"]
homepage = "https://d7y.io/"
repository = "https://github.com/dragonflyoss/client.git"

View File

@ -1,6 +1,4 @@
ARG BASE_IMAGE=rust
FROM ${BASE_IMAGE} as builder
FROM rust as builder
RUN apt-get update && apt-get install -y openssl libclang-dev pkg-config protobuf-compiler
@ -22,7 +20,7 @@ RUN if [ "$(uname -m)" = "ppc64le" ]; then \
fi && \
chmod +x /bin/grpc_health_probe
FROM ${BASE_IMAGE}
FROM debian:bookworm-slim
COPY --from=builder /app/client/target/release/dfget /usr/local/bin/dfget
COPY --from=builder /app/client/target/release/dfdaemon /usr/local/bin/dfdaemon