Skip to content

Commit b76884b

Browse files
committed
update to debian
Signed-off-by: Kevin Lefevre <archi@kiln.fi>
1 parent 792f942 commit b76884b

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

docker/pbs.Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,16 @@ COPY . .
1414
RUN cargo build --release --bin default-pbs
1515

1616

17-
FROM ubuntu AS runtime
17+
FROM debian:bookworm-slim AS runtime
1818
WORKDIR /app
1919

20-
RUN apt-get update
21-
RUN apt-get install -y openssl ca-certificates libssl3 libssl-dev
20+
RUN apt-get update && apt-get install -y \
21+
openssl \
22+
ca-certificates \
23+
libssl3 \
24+
libssl-dev \
25+
&& apt-get clean autoclean \
26+
&& rm -rf /var/lib/apt/lists/*
2227

2328
COPY --from=builder /app/target/release/default-pbs /usr/local/bin
2429
ENTRYPOINT ["/usr/local/bin/default-pbs"]

docker/signer.Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,16 @@ COPY . .
1414
RUN cargo build --release --bin signer-module
1515

1616

17-
FROM ubuntu AS runtime
17+
FROM debian:bookworm-slim AS runtime
1818
WORKDIR /app
1919

20-
RUN apt-get update
21-
RUN apt-get install -y openssl ca-certificates libssl3 libssl-dev
20+
RUN apt-get update && apt-get install -y \
21+
openssl \
22+
ca-certificates \
23+
libssl3 \
24+
libssl-dev \
25+
&& apt-get clean autoclean \
26+
&& rm -rf /var/lib/apt/lists/*
2227

2328
COPY --from=builder /app/target/release/signer-module /usr/local/bin
2429
ENTRYPOINT ["/usr/local/bin/signer-module"]

0 commit comments

Comments
 (0)