Skip to content

Commit e78572f

Browse files
authored
Update Dockerfile to use Rust 1.90 and Debian Bookworm, add security updates (#52)
* Update Dockerfile to use Rust 1.89 and Debian Bookworm, add security updates * change rust version to 1.90 in the Dockerfile
1 parent aec5db9 commit e78572f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:1.77-bullseye as build
1+
FROM rust:1.90-bookworm as build
22

33
WORKDIR /agent
44
ARG CARGO_FLAGS="--release"
@@ -11,7 +11,13 @@ COPY Cargo.lock Cargo.lock
1111
# see https://blog.rust-lang.org/inside-rust/2023/01/30/cargo-sparse-protocol.html
1212
RUN CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse cargo build ${CARGO_FLAGS}
1313

14-
FROM debian:bullseye-slim as agent
14+
FROM debian:bookworm-slim as agent
15+
16+
# Update package lists and install security updates
17+
RUN apt-get update && \
18+
apt-get upgrade -y && \
19+
apt-get clean && \
20+
rm -rf /var/lib/apt/lists/*
1521

1622
WORKDIR /agent
1723

0 commit comments

Comments
 (0)