Skip to content

Commit

Permalink
fix missing binary
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Cascio committed Jul 13, 2021
1 parent b66cdda commit 9281985
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
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"]

0 comments on commit 9281985

Please sign in to comment.