mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-12 20:42:57 +00:00
Merge pull request #1485 from mathbunnyru/asalikhov/fix_tensorflow
Fix tensorflow keras bug
This commit is contained in:
@@ -28,6 +28,7 @@ repos:
|
|||||||
rev: v2.7.0
|
rev: v2.7.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: hadolint-docker
|
- id: hadolint-docker
|
||||||
|
entry: hadolint/hadolint:v2.7.0 hadolint
|
||||||
|
|
||||||
# Lint: YAML
|
# Lint: YAML
|
||||||
- repo: https://github.com/adrienverge/yamllint.git
|
- repo: https://github.com/adrienverge/yamllint.git
|
||||||
|
@@ -46,6 +46,7 @@ RUN mamba install --quiet --yes \
|
|||||||
fix-permissions "/home/${NB_USER}"
|
fix-permissions "/home/${NB_USER}"
|
||||||
|
|
||||||
# These packages are not easy to install under arm
|
# These packages are not easy to install under arm
|
||||||
|
# hadolint ignore=SC2039
|
||||||
RUN set -x && \
|
RUN set -x && \
|
||||||
arch=$(uname -m) && \
|
arch=$(uname -m) && \
|
||||||
if [ "${arch}" == "x86_64" ]; then \
|
if [ "${arch}" == "x86_64" ]; then \
|
||||||
|
@@ -6,9 +6,19 @@ FROM $BASE_CONTAINER
|
|||||||
|
|
||||||
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
||||||
|
|
||||||
|
# Fix DL4006
|
||||||
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||||
|
|
||||||
# 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