@@ -16,7 +16,7 @@ FROM ubuntu:18.04 as base_build
16
16
ARG TF_SERVING_VERSION_GIT_BRANCH=master
17
17
ARG TF_SERVING_VERSION_GIT_COMMIT=head
18
18
19
- LABEL maintainer="Karthik Vadla <karthik.vadla @intel.com>"
19
+ LABEL maintainer="Clayne Robison <clayne.b.robison @intel.com>"
20
20
LABEL tensorflow_serving_github_branchtag=${TF_SERVING_VERSION_GIT_BRANCH}
21
21
LABEL tensorflow_serving_github_commit=${TF_SERVING_VERSION_GIT_COMMIT}
22
22
@@ -47,6 +47,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
47
47
apt-get clean && \
48
48
rm -rf /var/lib/apt/lists/*
49
49
50
+ RUN curl -fSsL -O https://bootstrap.pypa.io/get-pip.py && \
51
+ python3 get-pip.py && \
52
+ rm get-pip.py
53
+
50
54
# Install python 3.6.
51
55
RUN add-apt-repository ppa:deadsnakes/ppa && \
52
56
apt-get update && apt-get install -y \
@@ -58,10 +62,6 @@ RUN add-apt-repository ppa:deadsnakes/ppa && \
58
62
# Make python3.6 the default python version
59
63
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.6 0
60
64
61
- RUN curl -fSsL -O https://bootstrap.pypa.io/get-pip.py && \
62
- python3 get-pip.py && \
63
- rm get-pip.py
64
-
65
65
RUN pip3 --no-cache-dir install \
66
66
future>=0.17.1 \
67
67
grpcio \
@@ -91,12 +91,11 @@ RUN git clone --branch=${TF_SERVING_VERSION_GIT_BRANCH} https://github.com/tenso
91
91
git remote add upstream https://github.com/tensorflow/serving.git && \
92
92
if [ "${TF_SERVING_VERSION_GIT_COMMIT}" != "head" ]; then git checkout ${TF_SERVING_VERSION_GIT_COMMIT} ; fi
93
93
94
- FROM base_build as binary_build
95
94
95
+ FROM base_build as binary_build
96
96
# Build, and install TensorFlow Serving
97
97
ARG TF_SERVING_BUILD_OPTIONS="--config=mkl --config=release"
98
98
RUN echo "Building with build options: ${TF_SERVING_BUILD_OPTIONS}"
99
-
100
99
ARG TF_SERVING_BAZEL_OPTIONS=""
101
100
RUN echo "Building with Bazel options: ${TF_SERVING_BAZEL_OPTIONS}"
102
101
@@ -118,7 +117,8 @@ RUN bazel build --color=yes --curses=yes \
118
117
tensorflow_serving/tools/pip_package:build_pip_package && \
119
118
bazel-bin/tensorflow_serving/tools/pip_package/build_pip_package \
120
119
/tmp/pip && \
121
- pip --no-cache-dir install --upgrade /tmp/pip/tensorflow_serving*.whl && \
120
+ pip --no-cache-dir install --upgrade \
121
+ /tmp/pip/tensorflow_serving_api-*.whl && \
122
122
rm -rf /tmp/pip
123
123
124
124
# Copy MKL libraries
0 commit comments