From 00f4f1690fb58801e1463edd122421a86c38fb3d Mon Sep 17 00:00:00 2001 From: Gianluca Zuccarelli Date: Thu, 14 Jul 2022 12:28:33 +0100 Subject: [PATCH] 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. --- distribution/Dockerfile-worker | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/distribution/Dockerfile-worker b/distribution/Dockerfile-worker index 994bec310..a6ae9e7dd 100644 --- a/distribution/Dockerfile-worker +++ b/distribution/Dockerfile-worker @@ -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