mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-10 19:42:58 +00:00
Fix tensorflow keras bug
This commit is contained in:
@@ -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
|
||||
|
@@ -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' && \
|
||||
|
Reference in New Issue
Block a user