Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from kilnfi/optmize-docker-images
Browse files Browse the repository at this point in the history
feat: optimize dockerfiles
ArchiFleKs authored Sep 10, 2024
2 parents a3a6e7c + eb71d43 commit 10610ca
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
@@ -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
@@ -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"]

0 comments on commit 10610ca

Please sign in to comment.