Dockerfile-ubi: install gpgme devel package in builder

The go package `proglottis/gpgme` a dependency of `containers/image/v5`
package uses `libgpgme`. In the near future `internal/container`, which
depends on `containers/image/v5`, will be used directly in composer and
thus we need to install the `gpgme` devel package and its build deps.
This commit is contained in:
Christian Kellner 2022-07-11 21:35:34 +02:00 committed by Ondřej Budai
parent f76b1545ca
commit 4c55063a55

View file

@ -1,4 +1,10 @@
FROM registry.access.redhat.com/ubi8/go-toolset:latest AS builder
# We need to be root to install packages, but ubi8/go-toolset defaults to uid 1001
USER 0
# The go package `proglottis/gpgme` a dependency of `containers/image/v5` package
# uses `libgpgme` so we need to install it and its build dependencies
RUN dnf install -y gpgme-devel libassuan-devel
USER 1001
COPY . .
ENV GOFLAGS=-mod=vendor
RUN go install ./cmd/osbuild-composer/