-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(): refactoring with details
Signed-off-by: gkarthiks <[email protected]>
- Loading branch information
Showing
2 changed files
with
7 additions
and
4 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,6 +1,8 @@ | ||
# Stage 1: Build executable | ||
FROM golang:1.12-alpine as builder | ||
|
||
|
||
LABEL maintainer="Karthikeyan Govindaraj <[email protected]>" | ||
|
||
WORKDIR /go/src/github.com/gkarthiks/container-resource-exporter | ||
COPY container_resource_exporter.go . | ||
|
||
|
@@ -21,7 +23,5 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /cr-exporter | |
FROM scratch | ||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | ||
COPY --from=builder /cr-exporter . | ||
|
||
EXPOSE 9000 | ||
|
||
ENTRYPOINT [ "/cr-exporter" ] |
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