commit e829be92332ad66c75ecadf02d08e450e1d36f94 parent 6871e75997f566bcd58dc18fa3902d89f4c31d4e Author: MTRNord <mtrnord1@gmail.com> Date: Mon, 10 Oct 2022 21:12:16 +0200 Install teensorflow in docker Diffstat:
| M | Dockerfile | | | 19 | +++++++++++++++++++ |
1 file changed, 19 insertions(+), 0 deletions(-)
diff --git a/Dockerfile b/Dockerfile @@ -1,5 +1,24 @@ FROM rust:1.64 as builder +# Install tensorflow +RUN apt-get update && apt-get install -y curl + +# See http://bugs.python.org/issue19846 +ENV LANG C.UTF-8 + +RUN apt-get update && apt-get install -y \ + python3 \ + python3-pip + +RUN python3 -m pip --no-cache-dir install --upgrade \ + "pip<20.3" \ + setuptools + +# Some TF tools expect a "python" binary +RUN ln -s $(which python3) /usr/local/bin/python + +RUN python3 -m pip install --no-cache-dir tensorflow + WORKDIR /app COPY ./crates /app/crates COPY ./Cargo.toml /app