Skip to content

Commit 5b1bec9

Browse files
committed
Upgraded to v2.3.1 and Python 3.9
1 parent f0d2976 commit 5b1bec9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Dockerfile

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG PYTHON_VERSION=3.8.1-slim-buster
1+
ARG PYTHON_VERSION=3.9.0-slim-buster
22

33
FROM python:${PYTHON_VERSION} as tensorflow-builder
44

@@ -10,7 +10,7 @@ RUN apt-get update && \
1010
python-dev \
1111
unzip
1212

13-
ENV BAZEL_VERSION 0.29.1
13+
ENV BAZEL_VERSION 3.1.0
1414
WORKDIR /
1515
RUN mkdir /bazel && \
1616
cd /bazel && \
@@ -21,10 +21,11 @@ RUN mkdir /bazel && \
2121
cd / && \
2222
rm -f /bazel/bazel-$BAZEL_VERSION-installer-linux-x86_64.sh
2323

24-
RUN pip install -U pip six numpy wheel setuptools mock 'future>=0.17.1' && \
24+
# Up-to-date pip dependencies to be found at https://www.tensorflow.org/install/source
25+
RUN pip install -U pip six 'numpy<1.19.0' wheel setuptools mock 'future>=0.17.1' 'gast==0.3.3' typing_extensions && \
2526
pip install -U keras_applications keras_preprocessing --no-deps
2627

27-
ENV TENSORFLOW_VERSION 2.1.0
28+
ENV TENSORFLOW_VERSION 2.3.1
2829

2930
RUN curl -fSsL -O https://github.com/tensorflow/tensorflow/archive/v$TENSORFLOW_VERSION.tar.gz && \
3031
tar xvf v$TENSORFLOW_VERSION.tar.gz

0 commit comments

Comments
 (0)