-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update .gitmodules to point at release branch
release-v0.1.0
Update Dockerfile.perses-operator with redhat certified images and instructions to build the application (this is based on perses/perses-operator/Dockerfile.dev)
- Loading branch information
Showing
2 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
FROM alpine AS build-env | ||
RUN apk add --update --no-cache mailcap | ||
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_8_golang_1.22 as build-env | ||
|
||
FROM gcr.io/distroless/static-debian12 | ||
RUN apk add --update --no-cache make bash mailcap | ||
|
||
WORKDIR /app | ||
|
||
COPY perses-operator/ . | ||
|
||
RUN make build | ||
|
||
FROM registry.redhat.io/ubi8/ubi-minimal:8.10-1130 | ||
|
||
LABEL maintainer="The Perses Authors <[email protected]>" | ||
|
||
USER nobody | ||
|
||
COPY --chown=nobody:nobody perses-operator/bin/manager /bin/manager | ||
COPY --chown=nobody:nobody perses-operator/LICENSE /LICENSE | ||
COPY --from=build-env --chown=nobody:nobody /app/bin/manager /bin/manager | ||
COPY --chown=nobody:nobody LICENSE /LICENSE | ||
COPY --from=build-env --chown=nobody:nobody /etc/mime.types /etc/mime.types | ||
|
||
EXPOSE 8080 | ||
|