Skip to content

Commit ef5e9dd

Browse files
authored
Merge pull request #1485 from mathbunnyru/asalikhov/fix_tensorflow
Fix tensorflow keras bug
2 parents 7c05535 + 8f06d5c commit ef5e9dd

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ repos:
2828
rev: v2.7.0
2929
hooks:
3030
- id: hadolint-docker
31+
entry: hadolint/hadolint:v2.7.0 hadolint
3132

3233
# Lint: YAML
3334
- repo: https://github.com/adrienverge/yamllint.git

r-notebook/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ RUN mamba install --quiet --yes \
4646
fix-permissions "/home/${NB_USER}"
4747

4848
# These packages are not easy to install under arm
49+
# hadolint ignore=SC2039
4950
RUN set -x && \
5051
arch=$(uname -m) && \
5152
if [ "${arch}" == "x86_64" ]; then \

tensorflow-notebook/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,19 @@ FROM $BASE_CONTAINER
66

77
LABEL maintainer="Jupyter Project <[email protected]>"
88

9+
# Fix DL4006
10+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
11+
912
# Install Tensorflow
1013
RUN mamba install --quiet --yes \
1114
'tensorflow' && \
1215
mamba clean --all -f -y && \
1316
fix-permissions "${CONDA_DIR}" && \
1417
fix-permissions "/home/${NB_USER}"
18+
19+
# Temporary fix for https://github.com/jupyter/docker-stacks/issues/1480
20+
USER root
21+
WORKDIR /opt/conda/lib/python3.9/site-packages/
22+
RUN wget -qO- https://patch-diff.githubusercontent.com/raw/tensorflow/tensorflow/pull/51450.diff | git apply
23+
USER ${NB_UID}
24+
WORKDIR "${HOME}"

0 commit comments

Comments
 (0)