Skip to content

Commit

Permalink
fix: upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
m.alhaddad committed Oct 2, 2024
1 parent 48d63cc commit 8ca4fee
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nvidia/cuda:12.6.1-cudnn-devel-ubuntu20.04
FROM nvidia/cuda:12.4.1-cudnn-devel-ubuntu20.04

WORKDIR /jup

Expand All @@ -18,22 +18,24 @@ RUN apt install -y software-properties-common \
RUN apt update \
&& apt install -y python3.10 python3.10-venv python3.10-dev \
libgl1-mesa-glx libffi-dev libssl-dev \
curl git htop vim nano\
openssh-server \
&& curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
curl git htop vim nano openssh-server

RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
&& python3.10 get-pip.py \
&& rm get-pip.py \
&& /usr/bin/pip3 install -r requirements.txt -U \
&& jupyter notebook --generate-config \
&& rm get-pip.py

RUN pip install -r requirements.txt -U

RUN jupyter notebook --generate-config \
&& echo "c.FileCheckpoints.checkpoint_dir = '/tmp/'" >> /root/.jupyter/jupyter_notebook_config.py

# setup sshd
RUN mkdir /var/run/sshd \
&& echo 'root:root' | chpasswd \
&& sed -i 's/#*PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config \
&& sed -i 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' /etc/pam.d/sshd \
&& echo "export VISIBLE=now" >> /etc/profile
&& echo "export VISIBLE=now" >> /etc/profile

EXPOSE 8888 22

ENTRYPOINT ["jupyter", "lab","--ip=0.0.0.0","--allow-root","--NotebookApp.token=''","--NotebookApp.password=''"]
ENTRYPOINT ["jupyter", "lab","--ip=0.0.0.0","--allow-root","--NotebookApp.token=''","--NotebookApp.password=''"]

0 comments on commit 8ca4fee

Please sign in to comment.