Skip to content

Commit

Permalink
Dockerfile: Use alpine as base image (kubeflow#37)
Browse files Browse the repository at this point in the history
Signed-off-by: Ce Gao <[email protected]>
  • Loading branch information
gaocegege authored Apr 12, 2018
1 parent 9bfd388 commit 20ec6a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM golang:1.8.2 AS build-env
FROM golang:alpine AS build-env
# The GOPATH in the image is /go.
ADD . /go/src/github.com/kubeflow/hp-tuning
WORKDIR /go/src/github.com/kubeflow/hp-tuning/cli
RUN go build -o katib-cli

FROM centos:7
FROM alpine:3.7
WORKDIR /app
COPY --from=build-env /go/src/github.com/kubeflow/hp-tuning/cli/katib-cli /app/

0 comments on commit 20ec6a0

Please sign in to comment.