§2024-12-18
ssh -p 1765 192.168.62.251
alexlai@munetakaNas:~/docker-proj/jupyterhub-archlinux_x86_64_ja_JP_UTF-8$ cat Dockerfile
ARG BASE_IMAGE=archlinux
FROM $BASE_IMAGE AS builder
RUN pacman -Sy
RUN yes | pacman -S python3
RUN yes | pacman -S python-pip # pip and pip3 installed
RUN yes | pacman -S nodejs npm
#RUN yes | pacman -S jupyterhub # no good
RUN python3 -m pip install jupyterhub RUN npm install -g configurable-http-proxy RUN python3 -m pip install jupyterlab notebook # needed if running the notebook servers in the same environment
RUN yes | pacman -S adobe-source-han-serif-cn-fonts adobe-source-han-serif-jp-fonts adobe-source-han-serif-kr-fonts adobe-source-han-serif-otc-fonts adobe-source-han-serif-tw-fonts
RUN useradd -m -d /home/alexlai -s /bin/bash -G wheel -u 1026 alexlai SHELL ["/bin/bash", "-o", "pipefail", "-c"] RUN echo 'alexlai:alex1765' | chpasswd
RUN mkdir /home/alexlai/JupyterHub
RUN python3 -m pip install postgresql_kernel
EXPOSE 8000
LABEL maintainer="alexlai@munetaka.me"
CMD ["jupyterhub"]
alexlai@munetakaNas:~/dock
Return to Top