From 3cd2380d4625529cdfc1b2ddd441e2b58ccda3fd Mon Sep 17 00:00:00 2001 From: Michael Panchenko Date: Thu, 19 Oct 2023 21:12:34 +0200 Subject: [PATCH] Revert entrypoint changes, hoping for best --- entrypoint.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 3bf60748..b5ed9a44 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,14 +7,11 @@ ROOT_DIR="${HOME}"/tfl-training-rl if [ ! -d "${ROOT_DIR}" ]; then echo "Code not found in ${ROOT_DIR}, copying it during entrypoint. With jupyterhub this should happen only once" mkdir "${ROOT_DIR}" + cp -rf "${CODE_DIR}"/* "${ROOT_DIR}/" fi -# ALWAYS OVERWRITE FOR NOW - TODO: adjust as was before -cp -rf "${CODE_DIR}"/* "${ROOT_DIR}/" cd "${ROOT_DIR}" || exit -RUN poetry run ipython kernel install --name "tfl-training-rl" --user - # original entrypoint, see https://github.com/jupyter/docker-stacks/blob/master/base-notebook/Dockerfile#L150 # need -s option for tini to work properly when started not as PID 1