Fix tensorflow keras bug

This commit is contained in:
Ayaz Salikhov
2021-10-16 17:05:37 +03:00
parent 7c05535e59
commit d26adb81cb
2 changed files with 11 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ repos:
rev: v2.7.0
hooks:
- id: hadolint-docker
entry: hadolint/hadolint:v2.7.0 hadolint
# Lint: YAML
- repo: https://github.com/adrienverge/yamllint.git

View File

@@ -6,6 +6,16 @@ FROM $BASE_CONTAINER
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' && \