-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Augustin Husson <[email protected]>
- Loading branch information
Showing
9 changed files
with
352 additions
and
24 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 |
---|---|---|
|
@@ -3,3 +3,5 @@ | |
/bin/ | ||
|
||
/dist | ||
|
||
.goreleaser.yaml |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM alpine AS build-env | ||
RUN apk add --update --no-cache mailcap | ||
|
||
FROM gcr.io/distroless/static-debian11 | ||
|
||
LABEL maintainer="The Perses Authors <[email protected]>" | ||
|
||
USER nobody | ||
|
||
COPY --chown=nobody:nobody metrics-usage /bin/metrics-usage | ||
COPY --chown=nobody:nobody LICENSE /LICENSE | ||
COPY --from=build-env --chown=nobody:nobody /etc/mime.types /etc/mime.types | ||
|
||
WORKDIR /perses | ||
|
||
EXPOSE 8080 | ||
ENTRYPOINT [ "/bin/metrics-usage" ] |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM alpine AS build-env | ||
RUN apk add --update --no-cache mailcap | ||
RUN mkdir /perses | ||
|
||
FROM gcr.io/distroless/static-debian11:debug | ||
|
||
LABEL maintainer="The Perses Authors <[email protected]>" | ||
|
||
USER nobody | ||
|
||
COPY --chown=nobody:nobody metrics-usage /bin/metrics-usage | ||
COPY --chown=nobody:nobody LICENSE /LICENSE | ||
COPY --from=build-env --chown=nobody:nobody /etc/mime.types /etc/mime.types | ||
|
||
WORKDIR /perses | ||
|
||
EXPOSE 8080 | ||
ENTRYPOINT [ "/bin/metrics-usage" ] |
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
Oops, something went wrong.