Compare commits

...

2 Commits

Author SHA1 Message Date
e075640c0c Merge pull request 'feat: add work directory to container' (#2) from neoloc/add_work_dir into master
All checks were successful
Deploy / build (push) Successful in 51s
Reviewed-on: https://git.query.consul/unkin/docker-almalinux-jupyterinstance/pulls/2
2024-11-16 19:06:19 +11:00
adc01e2707 feat: add work directory to container
All checks were successful
Build / build (pull_request) Successful in 2m17s
2024-11-16 19:03:14 +11:00

View File

@ -26,7 +26,9 @@ RUN /opt/jupyter/bin/pip install \
# create a user, since we don't want to run as root # create a user, since we don't want to run as root
RUN useradd -m jupyter RUN useradd -m jupyter
ENV HOME=/home/jupyter ENV HOME=/home/jupyter
WORKDIR $HOME RUN mkdir $HOME/work
RUN chown jupyter:jupyter $HOME/work
WORKDIR $HOME/work
USER jupyter USER jupyter
# set the default command # set the default command