Skip to content

Commit 2d385b4

Browse files
authored
Update Notebook-dev.Dockerfile
1 parent 22b44ea commit 2d385b4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Notebook-dev.Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ RUN apt-get update --yes && \
1414
RUN apt-get install -y openssh-server && \
1515
mkdir /var/run/sshd && \
1616
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin no/' /etc/ssh/sshd_config && \
17-
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config
17+
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config && \
18+
sed -i 's/#Port 22/Port 8822/' /etc/ssh/sshd_config
1819

1920
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
2021

@@ -39,7 +40,7 @@ USER ${NB_UID}
3940

4041
RUN sed -i '/eval "$(conda shell.bash hook)"/c\export PATH="/opt/conda/bin:/opt/conda/condabin:/opt/conda/bin:/opt/conda/condabin:/opt/conda/bin:$PATH"\neval "$(conda shell.bash hook)"' ~/.bashrc
4142

42-
EXPOSE 22
43+
EXPOSE 8822
4344

4445
ENTRYPOINT ["tini", "-g", "--"]
4546
CMD ["/usr/local/bin/start-nb-with-ssh-dev.sh"]

0 commit comments

Comments
 (0)