Skip to content

Commit a109e7f

Browse files
committed
try new docker image
1 parent 8b7ac0b commit a109e7f

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

Dockerfile

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,6 @@ FROM registry.access.redhat.com/ubi8/go-toolset:1.23 AS builder
33

44
ARG 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-
166
WORKDIR /workspace
177
# Copy the Go Modules manifests
188
COPY go.mod go.mod
@@ -24,8 +14,7 @@ RUN go mod download
2414
COPY main.go main.go
2515
COPY 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

3019
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.8
3120
WORKDIR /

0 commit comments

Comments
 (0)