mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-17 09:34:16 -05:00
fix(asb, asb-controller): install root certificates in docker image (#569)
Co-authored-by: binarybaron <binarybaron@mail.mail>
This commit is contained in:
parent
36c1c3a28b
commit
b340b22f0c
2 changed files with 16 additions and 0 deletions
|
|
@ -93,6 +93,14 @@ RUN cargo build --release --locked -vv -p swap-controller --bin=asb-controller
|
|||
# Latest Ubuntu 24.04 image as of Tue, 05 Aug 2025 15:34:08 GMT
|
||||
FROM ubuntu:24.04@sha256:a08e551cb33850e4740772b38217fc1796a66da2506d312abe51acda354ff061 AS runner
|
||||
|
||||
# Install native root certificates
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
RUN --mount=type=cache,target=/var/cache/apt \
|
||||
--mount=type=cache,target=/var/lib/apt \
|
||||
apt-get update && \
|
||||
apt-get install -y ca-certificates && \
|
||||
update-ca-certificates
|
||||
|
||||
COPY --from=builder /target/release/asb /bin/asb
|
||||
COPY --from=builder /target/release/asb-controller /bin/asb-controller
|
||||
|
||||
|
|
|
|||
|
|
@ -12,6 +12,14 @@ RUN cargo build --locked --bin asb-controller --release
|
|||
# Latest Debian Bookworm image as of Tue, 05 Aug 2025 15:34:08 GMT
|
||||
FROM debian:bookworm@sha256:b6507e340c43553136f5078284c8c68d86ec8262b1724dde73c325e8d3dcdeba AS runner
|
||||
|
||||
# Install native root certificates
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
RUN --mount=type=cache,target=/var/cache/apt \
|
||||
--mount=type=cache,target=/var/lib/apt \
|
||||
apt-get update && \
|
||||
apt-get install -y ca-certificates && \
|
||||
update-ca-certificates
|
||||
|
||||
COPY --from=builder /build/target/release/asb-controller /usr/local/bin/asb-controller
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/asb-controller"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue