Skip to content

Commit d60307f

Browse files
zoyahavtfx-copybara
authored andcommitted
Updating the Dockerfile used for the serving image to use bazel version 6.1.0 and python 3.8, in order for it to be compatible with tensorflow-serving.
PiperOrigin-RevId: 552508492
1 parent 6ebfc2a commit d60307f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

struct2tensor/tools/tf_serving_docker/Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
5656
apt-get clean && \
5757
rm -rf /var/lib/apt/lists/*
5858

59-
# Install python 3.7.
59+
# Install python 3.8.
6060
RUN add-apt-repository ppa:deadsnakes/ppa && \
6161
apt-get update && apt-get install -y \
62-
python3.7 python3.7-dev python3-pip python3.7-venv && \
62+
python3.8 python3.8-dev python3-pip python3.8-venv && \
6363
rm -rf /var/lib/apt/lists/* && \
64-
python3.7 -m pip install pip --upgrade && \
65-
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 0
64+
python3.8 -m pip install pip --upgrade && \
65+
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 0
6666

67-
# Make python3.7 the default python version
68-
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.7 0
67+
# Make python3.8 the default python version
68+
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.8 0
6969

7070
RUN curl -fSsL -O https://bootstrap.pypa.io/get-pip.py && \
7171
python3 get-pip.py && \
@@ -74,7 +74,7 @@ RUN curl -fSsL -O https://bootstrap.pypa.io/get-pip.py && \
7474
RUN pip3 --no-cache-dir install --upgrade numpy
7575

7676
# Set up Bazel
77-
ENV BAZEL_VERSION 5.3.0
77+
ENV BAZEL_VERSION 6.1.0
7878
WORKDIR /bazel
7979
RUN curl -fSsL -O https://github.com/bazelbuild/bazel/releases/download/$BAZEL_VERSION/bazel-$BAZEL_VERSION-installer-linux-x86_64.sh && \
8080
chmod +x bazel-*.sh && \

0 commit comments

Comments
 (0)