Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: root password #4

Merged
merged 15 commits into from
Aug 7, 2023
20 changes: 8 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,13 @@ FROM kubeflownotebookswg/jupyter-pytorch-cuda-full:v1.7.0

USER root

RUN apt-get update -y
RUN apt-get upgrade -y
RUN username=jovyan \
password=jovyan \
adduser --gecos "" --disabled-password $username \
chpasswd <<<"$username:$password"

USER jovyan

RUN pip install plotly
RUN pip install darts
RUN pip install -U torch torchaudio --no-cache-dir
RUN pip install wandb
RUN pip install ipywidgets==8.0.4
RUN jupyter nbextension enable --py widgetsnbextension
# Allow using 'su -' to make sandbox changes
RUN chpasswd <<<"root:root" && \
sed -Ei 's/(.*pam_deny.so)/# \1/' /etc/pam.d/su

RUN echo "root:1234patata" | chpasswd
RUN echo "jovyan:1234patata" | chpasswd
USER jovyan
Loading