Install teensorflow in docker
This commit is contained in:
parent
6871e75997
commit
e829be9233
19
Dockerfile
19
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
|
||||
|
|
Loading…
Reference in New Issue