File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,6 @@ FROM registry.access.redhat.com/ubi8/go-toolset:1.23 AS builder
33
44ARG TARGETOS TARGETARCH
55
6- USER root
7-
8- # Install system dependencies
9- RUN dnf upgrade -y && dnf install -y \
10- gcc \
11- make \
12- openssl-devel \
13- git \
14- && dnf clean all && rm -rf /var/cache/yum
15-
166WORKDIR /workspace
177# Copy the Go Modules manifests
188COPY go.mod go.mod
@@ -24,8 +14,7 @@ RUN go mod download
2414COPY main.go main.go
2515COPY pkg/ pkg/
2616
27- # Build
28- RUN CGO_ENABLED=1 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH:-amd64} make go-build-for-image
17+ RUN CGO_ENABLED=1 GOOS=linux GOARCH=${TARGETARCH:-amd64} make go-build-for-image
2918
3019FROM registry.access.redhat.com/ubi8/ubi-minimal:8.8
3120WORKDIR /
You can’t perform that action at this time.
0 commit comments