https://github.com/kubeflow/katib
Raw File
Tip revision: 57dd5c5dd7e3c06f31e5ddd54483257bad0eb532 authored by John Platt on 07 March 2019, 14:09:53 UTC
added run command to test script
Tip revision: 57dd5c5
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/studyjobcontroller
# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o studyjobcontroller
# 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/studyjobcontroller/studyjobcontroller .
ENTRYPOINT ["./studyjobcontroller"]
back to top