mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-18 23:42:55 +00:00
Fix tensorflow install
This commit is contained in:
@@ -9,16 +9,16 @@ LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
|||||||
# Fix DL4006
|
# Fix DL4006
|
||||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
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
|
# Install Tensorflow
|
||||||
RUN mamba install --quiet --yes \
|
RUN mamba install --quiet --yes \
|
||||||
'tensorflow' && \
|
'tensorflow' && \
|
||||||
mamba clean --all -f -y && \
|
mamba clean --all -f -y && \
|
||||||
fix-permissions "${CONDA_DIR}" && \
|
fix-permissions "${CONDA_DIR}" && \
|
||||||
fix-permissions "/home/${NB_USER}"
|
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}"
|
||||||
|
Reference in New Issue
Block a user