Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile.coverage
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} \
go build -cover -covermode=atomic -tags=coverage \
-a -o policy-controller ./cmd/webhook

FROM registry.access.redhat.com/ubi9/ubi-minimal@sha256:062c52ff973065752b0965787649db2bcf551a6c727a00e95a3eb42cebadbdab
FROM registry.access.redhat.com/ubi9/ubi-minimal@sha256:17fd831ced9434de0a984d60b3fbe61008308261ba98bbc348d6fbdef05fa7c0
WORKDIR /
COPY --from=builder /workspace/policy-controller .
USER 65532:65532
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.rh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Build stage
FROM registry.redhat.io/ubi9/go-toolset:latest@sha256:ad9d042375cef55890db3378ced9d0cebd74656bc8dc4c3b0cdbea31b85ce459 AS build-env
FROM registry.redhat.io/ubi9/go-toolset:latest@sha256:e9a5c440e19e941995d14871d31cef9aa63ede1dc3d130bba97a7c1b1868f1ba AS build-env
WORKDIR /opt/app-root/src/
USER root
ENV GOEXPERIMENT=strictfipsruntime
Expand All @@ -17,7 +17,7 @@ RUN CGO_ENABLED=1 go build -mod=mod \
-o ./policy-controller ./cmd/webhook

# Install stage
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:062c52ff973065752b0965787649db2bcf551a6c727a00e95a3eb42cebadbdab
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:17fd831ced9434de0a984d60b3fbe61008308261ba98bbc348d6fbdef05fa7c0
COPY --from=build-env /opt/app-root/src/policy-controller /usr/local/bin/policy-controller
WORKDIR /opt/app-root/src/home
COPY LICENSE /licenses/LICENSE
Expand Down
Loading