Dockerfile: update worker builder

Additional packages are required to build the
docker worker. This fix updates the builder
container to install the required libraries
and then create the worker binary.
This commit is contained in:
Gianluca Zuccarelli 2022-07-14 12:28:33 +01:00 committed by Sanne Raymaekers
parent 9d4a351ca6
commit 00f4f1690f

View file

@ -1,5 +1,13 @@
FROM registry.access.redhat.com/ubi8/go-toolset:latest AS builder
COPY . .
FROM fedora:35 AS builder
ENV GOBIN=/opt/app-root/src/go/bin
# extra packages are needed
# to compile osbuild
RUN dnf install -y golang \
krb5-devel \
gpgme-devel \
libassuan-devel
WORKDIR /osbuild-composer
COPY . /osbuild-composer
ENV GOFLAGS=-mod=vendor
RUN go install ./cmd/osbuild-worker