https://github.com/kubeflow/katib
Raw File
Tip revision: 1f25d46405054bc1f7096b170dd43900db8caa27 authored by IWAMOTO Toshihiro on 12 November 2018, 02:43:04 UTC
Add mysql based unit tests
Tip revision: 1f25d46
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