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:
parent
9d4a351ca6
commit
00f4f1690f
1 changed files with 10 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue