Skip to content

Commit

Permalink
feat: optimize dockerfiles
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Lefevre <[email protected]>
  • Loading branch information
ArchiFleKs committed Sep 10, 2024
1 parent 45ce8f1 commit 3dbf65c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
14 changes: 8 additions & 6 deletions docker/pbs.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ COPY . .
RUN cargo build --release --bin default-pbs


FROM ubuntu AS runtime
FROM ubuntu:24.04 AS runtime
WORKDIR /app

RUN apt-get update
RUN apt-get install -y openssl ca-certificates libssl3 libssl-dev
RUN apt-get update && apt-get install -y \
openssl \
ca-certificates \
libssl3 \
libssl-dev \
&& apt-get clean autoclean \
&& rm -rf /var/lib/apt/lists/*

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



11 changes: 8 additions & 3 deletions docker/signer.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,16 @@ COPY . .
RUN cargo build --release --bin signer-module


FROM ubuntu AS runtime
FROM ubuntu:24.04 AS runtime
WORKDIR /app

RUN apt-get update
RUN apt-get install -y openssl ca-certificates libssl3 libssl-dev
RUN apt-get update && apt-get install -y \
openssl \
ca-certificates \
libssl3 \
libssl-dev \
&& apt-get clean autoclean \
&& rm -rf /var/lib/apt/lists/*

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

0 comments on commit 3dbf65c

Please sign in to comment.