You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
1.4 KiB

#FROM sealos.hub:5000/nvidia/cuda:11.8.0-devel-ubuntu22.04
FROM sealos.hub:5000/ubuntu:22.04
6 months ago
ENV DEBIAN_FRONTEND='noninteractive'
ENV TZ=Asia/Shanghai
ENV LANG=zh_CN.UTF8
RUN apt update && apt install -y tzdata python3 python3-pip vim git openssh-server vim iproute2 iputils-ping unzip
6 months ago
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && python3 -m pip install --upgrade pip
RUN pip install notebook==7.2.1 jupyterlab-language-pack-zh-CN==4.2.post1
RUN mkdir -p /root/.jupyter/lab/user-settings/@jupyterlab/translation-extension/ && mkdir -p /root/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/
6 months ago
RUN rm /usr/bin/sh && ln -s /usr/bin/bash /usr/bin/sh
RUN sed -i '1i ;(() => {var src = "/js/jupyter.js";var script = document.createElement('\''script'\'');if(location.origin.indexOf("educoder.net") > -1){src = "https:" + src}else{src = location.origin + "/react/build/" + src;}script.src = src;document.head.appendChild(script);})();' /usr/local/share/jupyter/lab/static/main.ff3db1deac539c231382.js
6 months ago
COPY plugin.jupyterlab-settings /root/.jupyter/lab/user-settings/@jupyterlab/translation-extension/
COPY notification.jupyterlab-settings /root/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/
#COPY jupyter_notebook_config.py /etc/jupyter/
6 months ago
COPY start.sh /
CMD /start.sh