Skip to content

Commit

Permalink
chore: change base image to debian:bookworm-slim in runtime image (#191)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Jan 3, 2024
1 parent dbba676 commit d527287
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand Down

0 comments on commit d527287

Please sign in to comment.