Add experimental environment: tensorflow-serving (#1212)

This commit is contained in:
Ta-Ching Chen
2019-07-02 15:43:55 +08:00
committed by GitHub
parent 2ba66afb9f
commit b229d6e1b0
13 changed files with 408 additions and 30 deletions
@@ -0,0 +1,23 @@
ARG GO_VERSION=1.9.2
FROM tensorflow/serving as serving
RUN apt update && apt install -y ca-certificates && rm -rf /var/lib/apt/lists/*
FROM golang:${GO_VERSION} AS builder
ENV GOPATH /usr
ENV APP ${GOPATH}/src/github.com/fission/fission/environments/tensorflow-serving
WORKDIR ${APP}
ADD server.go ${APP}
RUN go get
RUN go build -a -o /server server.go
FROM serving
WORKDIR /
COPY --from=builder /server /
ENTRYPOINT ["/server"]
EXPOSE 8888