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:
parent
f76b1545ca
commit
4c55063a55
1 changed files with 6 additions and 0 deletions
|
|
@ -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/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue