Files
troubleshoot/Dockerfile
2019-07-05 22:38:40 +00:00

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"]