From 14071791c5325c1ee502c41ae23a1df6c3aca919 Mon Sep 17 00:00:00 2001 From: Alex Kerney Date: Thu, 18 Aug 2022 10:34:46 -0400 Subject: [PATCH] Add entrypoint for Python image --- py-base/Dockerfile | 3 +++ py-base/entrypoint.sh | 2 ++ 2 files changed, 5 insertions(+) create mode 100755 py-base/entrypoint.sh diff --git a/py-base/Dockerfile b/py-base/Dockerfile index bbab129..02e9fa0 100644 --- a/py-base/Dockerfile +++ b/py-base/Dockerfile @@ -32,7 +32,10 @@ RUN --mount=type=cache,id=ohw_py,target=/opt/conda/pkgs,uid=${NB_UID},gid=${NB_U find -name '__pycache__' -type d -exec rm -rf '{}' '+' COPY CONDARC ./.condarc +COPY --chown=${NB_USER} entrypoint.sh /opt/entrypoint.sh # USER root # RUN chown -R jovyan ${CONDA_DIR} USER ${NB_USER} + +ENTRYPOINT [ "/opt/entrypoint.sh" ] diff --git a/py-base/entrypoint.sh b/py-base/entrypoint.sh new file mode 100755 index 0000000..6e887ee --- /dev/null +++ b/py-base/entrypoint.sh @@ -0,0 +1,2 @@ +#!/bin/bash -l +exec "$@"