Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: konflux-ci/multi-platform-controller
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1ed684a22210ead285a3e3e3f3ec1763b33ffbbd
Choose a base ref
..
head repository: konflux-ci/multi-platform-controller
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3d26bc1fc3e027f64865fec6b0c5d7477e93bb38
Choose a head ref
Showing with 21 additions and 0 deletions.
  1. +21 −0 Dockerfile.otp
21 changes: 21 additions & 0 deletions Dockerfile.otp
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Build the manager binary
FROM registry.access.redhat.com/ubi9/go-toolset:1.19 as builder

# Copy the Go Modules manifests
COPY go.mod go.mod
COPY vendor/ vendor/
COPY design/ design/
COPY gen/ gen/
COPY pkg/ pkg/
COPY cmd/ cmd/

# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o otp-server ./cmd/otp

# Use ubi-minimal as minimal base image to package the manager binary
# Refer to https://catalog.redhat.com/software/containers/ubi8/ubi-minimal/5c359a62bed8bd75a2c3fba8 for more details
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.2
COPY --from=builder /opt/app-root/src/otp-server /
USER 65532:65532

ENTRYPOINT ["/otp-server"]