Install teensorflow in docker

This commit is contained in:
MTRNord 2022-10-10 21:12:16 +02:00
parent 6871e75997
commit e829be9233
1 changed files with 19 additions and 0 deletions

View File

@ -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