forked from marcuslinke/registrator
-
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.
- Loading branch information
Bruno Cascio
committed
Jul 13, 2021
1 parent
b66cdda
commit 9281985
Showing
1 changed file
with
3 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,8 +1,8 @@ | ||
FROM golang:1.16.2 AS builder | ||
FROM golang:1.16 AS builder | ||
WORKDIR /go/src/github.com/gliderlabs/registrator/ | ||
COPY . . | ||
RUN go build -o bin/registrator . | ||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /bin/registrator . | ||
|
||
FROM scratch | ||
COPY --from=builder /go/src/github.com/gliderlabs/registrator/bin/registrator /bin/registrator | ||
COPY --from=builder /bin/registrator /bin/registrator | ||
ENTRYPOINT ["/bin/registrator"] |