Skip to content

Commit

Permalink
add cgo-related dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sudocarlos committed Jan 21, 2025
1 parent 8377620 commit e08faaa
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e08faaa

Please sign in to comment.