Skip to content

Commit

Permalink
Merge pull request #61 from abkfenris/entrypoint
Browse files Browse the repository at this point in the history
Add entrypoint for Python image
  • Loading branch information
abkfenris authored Aug 18, 2022
2 parents 39ba006 + 1407179 commit 99b6ab5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions py-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
2 changes: 2 additions & 0 deletions py-base/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash -l
exec "$@"

0 comments on commit 99b6ab5

Please sign in to comment.