forked from grafana/grafana-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* use distroless/static base image * implement stat for readinessProbe
- Loading branch information
Showing
2 changed files
with
22 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3 | ||
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3 AS symlinker | ||
|
||
RUN mkdir -p /opt/jsonnet && chown nobody /opt/jsonnet | ||
ADD build/_output/bin/grafana-operator /usr/local/bin/grafana-operator | ||
RUN cd /usr/local/bin/ && ln -sf grafana-operator stat | ||
|
||
FROM gcr.io/distroless/static | ||
|
||
USER nobody | ||
|
||
ADD grafonnet-lib/grafonnet/ /opt/jsonnet/grafonnet | ||
|
||
ADD build/_output/bin/grafana-operator /usr/local/bin/grafana-operator | ||
COPY --from=symlinker /usr/local/bin/ /usr/local/bin/ |
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