Skip to content

Commit

Permalink
fix(RHTAPREL-724): change minimal image
Browse files Browse the repository at this point in the history
Change image to ubi9-minimal as it contains the required
ca-certificates.

Signed-off-by: David Moreno García <damoreno@redhat.com>
  • Loading branch information
davidmogar committed Nov 14, 2023
1 parent 982090d commit f5cb915
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Build the manager binary
FROM registry.access.redhat.com/ubi9/go-toolset:1.19 as builder

ARG TARGETOS
ARG TARGETARCH

WORKDIR /workspace
# Copy the Go Modules manifests
COPY go.mod go.mod
COPY go.sum go.sum
Expand All @@ -27,11 +27,10 @@ COPY tekton/ tekton/
# by leaving it empty we can ensure that the container and binary shipped on it will have the same platform.
RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o manager main.go

# Use ubi-micro as minimal base image to package the manager binary
# See https://catalog.redhat.com/software/containers/ubi9/ubi-micro/615bdf943f6014fa45ae1b58
FROM registry.access.redhat.com/ubi9/ubi-micro:9.2-15.1696515526
WORKDIR /
COPY --from=builder /workspace/manager .
# Use ubi-minimal as minimal base image to package the manager binary
# See https://catalog.redhat.com/software/containers/ubi9-minimal/61832888c0d15aff4912fe0d
FROM registry.access.redhat.com/ubi9-minimal:9.3-1361
COPY --from=builder /opt/app-root/src/manager /

# It is mandatory to set these labels
LABEL description="RHTAP Internal Services"
Expand Down

0 comments on commit f5cb915

Please sign in to comment.