mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-02-14 10:19:54 +00:00
18 lines
489 B
Docker
18 lines
489 B
Docker
# Build the manager binary
|
|
FROM golang:1.10.3 as builder
|
|
|
|
# Copy in the go src
|
|
WORKDIR /go/src/github.com/replicatedhq/troubleshoot
|
|
COPY pkg/ pkg/
|
|
COPY cmd/ cmd/
|
|
COPY vendor/ vendor/
|
|
|
|
# Build
|
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager github.com/replicatedhq/troubleshoot/cmd/manager
|
|
|
|
# Copy the controller-manager into a thin image
|
|
FROM ubuntu:latest
|
|
WORKDIR /
|
|
COPY --from=builder /go/src/github.com/replicatedhq/troubleshoot/manager .
|
|
ENTRYPOINT ["/manager"]
|