diff --git a/base-notebook/Dockerfile b/base-notebook/Dockerfile index 7943cbad..7a2aebc2 100644 --- a/base-notebook/Dockerfile +++ b/base-notebook/Dockerfile @@ -103,6 +103,7 @@ RUN mkdir "/home/${NB_USER}/work" && \ # Do all this in a single RUN command to avoid duplicating all of the # files across image layers when the permissions change COPY --chown="${NB_UID}:${NB_GID}" initial-condarc "${CONDA_DIR}/.condarc" +COPY --chown="${NB_UID}:${NB_GID}" test-file.txt /tmp/test-file.txt WORKDIR /tmp RUN set -x && \ arch=$(uname -m) && \ diff --git a/base-notebook/test-file.txt b/base-notebook/test-file.txt new file mode 100644 index 00000000..bd83801f --- /dev/null +++ b/base-notebook/test-file.txt @@ -0,0 +1 @@ +test-content diff --git a/tests/base-notebook/units/unit_check_file.py b/tests/base-notebook/units/unit_check_file.py new file mode 100644 index 00000000..ecc00719 --- /dev/null +++ b/tests/base-notebook/units/unit_check_file.py @@ -0,0 +1,8 @@ +# Copyright (c) Jupyter Development Team. +# Distributed under the terms of the Modified BSD License. + +from pathlib import Path + +file = Path("/tmp/test-file.txt") +assert file.exists() +assert file.read_text() == "test-content\n"