mirror of
https://github.com/0xMassi/webclaw.git
synced 2026-06-09 22:35:12 +02:00
fix(docker): source CA bundle from distroless instead of apt (fixes arm64 release build)
This commit is contained in:
parent
3781c2874f
commit
276bfb9154
2 changed files with 7 additions and 6 deletions
|
|
@ -59,9 +59,9 @@ RUN touch crates/*/src/*.rs \
|
|||
# ---------------------------------------------------------------------------
|
||||
FROM ubuntu:24.04
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
# CA bundle from distroless (ships it, multi-arch, gcr.io) instead of
|
||||
# apt-installing from ports.ubuntu.com (unreachable for arm64 on CI runners).
|
||||
COPY --from=gcr.io/distroless/static-debian12 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||
|
||||
# Copy all three binaries
|
||||
COPY --from=builder /build/target/release/webclaw /usr/local/bin/webclaw
|
||||
|
|
|
|||
|
|
@ -5,9 +5,10 @@ ARG BINARY_DIR=binaries
|
|||
|
||||
FROM ubuntu:24.04
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
# CA bundle copied from a reliable multi-arch image instead of apt-installing
|
||||
# from ports.ubuntu.com — Canonical's arm64 ports mirror is unreachable from
|
||||
# CI runners and breaks the multi-arch release build. No build-time network.
|
||||
COPY --from=gcr.io/distroless/static-debian12 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||
|
||||
ARG BINARY_DIR
|
||||
COPY ${BINARY_DIR}/webclaw /usr/local/bin/webclaw
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue