Fix tensorflow install

This commit is contained in:
Ayaz Salikhov
2021-10-16 22:06:12 +03:00
parent e0bebfff74
commit 8f06d5ccc0

View File

@@ -9,16 +9,16 @@ LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
# Fix DL4006
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# Temporary fix for https://github.com/jupyter/docker-stacks/issues/1480
USER root
WORKDIR /opt/conda/lib/python3.9/site-packages/
RUN wget -qO- https://patch-diff.githubusercontent.com/raw/tensorflow/tensorflow/pull/51450.diff | git apply
USER ${NB_UID}
WORKDIR "${HOME}"
# Install Tensorflow
RUN mamba install --quiet --yes \
'tensorflow' && \
mamba clean --all -f -y && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
# Temporary fix for https://github.com/jupyter/docker-stacks/issues/1480
USER root
WORKDIR /opt/conda/lib/python3.9/site-packages/
RUN wget -qO- https://patch-diff.githubusercontent.com/raw/tensorflow/tensorflow/pull/51450.diff | git apply
USER ${NB_UID}
WORKDIR "${HOME}"