https://github.com/kubeflow/katib
Raw File
Tip revision: 873a14d98133963fa049b2e272476ba805ff1c70 authored by Mayank Juneja on 10 October 2018, 05:33:15 UTC
Merge branch 'master' into bayesian
Tip revision: 873a14d
Dockerfile
# Build the manager binary
FROM golang:alpine AS build-env

# Copy in the go src
ADD . /go/src/github.com/kubeflow/katib

WORKDIR /go/src/github.com/kubeflow/katib/cmd/metricscollector
# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o metricscollector
# Copy the controller-manager into a thin image
FROM alpine:3.7
WORKDIR /app
COPY --from=build-env /go/src/github.com/kubeflow/katib/cmd/metricscollector/metricscollector .
back to top