From e08faaac8ab6a34f994419c69a978ae67f210dbc Mon Sep 17 00:00:00 2001 From: Carlos Date: Tue, 21 Jan 2025 07:10:58 -0500 Subject: [PATCH] add cgo-related dependencies --- Dockerfile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0fd24b9..b6d54a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,9 +5,21 @@ ARG TAG=master RUN git clone https://github.com/bitvora/haven.git && \ cd haven && \ git checkout $TAG && \ - go install + go install -v -FROM fedora + +# From docker-library/golang/1.23/bookworm/Dockerfile +# install cgo-related dependencies +FROM buildpack-deps:bookworm-scm + +RUN set -eux; \ + apt-get update; \ + apt-get install -y --no-install-recommends \ + g++ \ + gcc \ + libc6-dev \ + make \ + pkg-config COPY --from=builder /go/haven /haven COPY --from=builder /go/bin/haven /haven/haven