jupyter/Containerfile

68 lines
1.6 KiB
Text
Raw Normal View History

2024-05-03 11:25:40 +00:00
FROM forgejo.maciej.cloud/pkg/mc-fedora-base
2024-04-14 18:16:09 +00:00
ENV VIRTUAL_ENV=/venv
ENV PATH=/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2024-04-25 12:32:35 +00:00
ENV PKGS_DNF="python \
nodejs \
latex \
xelatex \
tini \
bind-utils \
iputils \
nmap \
nmap-ncat \
whois \
iproute \
wget \
rsync"
2024-04-14 18:16:09 +00:00
2024-04-25 12:32:35 +00:00
ENV PKGS_DNF_BUILD="cargo python3-devel"
2024-04-18 13:42:55 +00:00
2024-04-14 18:16:09 +00:00
ENV PKGS_PIP="jupyter \
bash_kernel \
mariadb_kernel \
jedi-language-server \
jupyterlab-lsp \
python-lsp-server[all] \
2024-07-29 12:36:33 +00:00
rope \
2024-04-14 18:16:09 +00:00
jupyterthemes \
jupyterlab-vim \
2024-09-14 19:20:24 +00:00
jupyterlab-git \
lckr_jupyterlab_variableinspector \
2024-07-27 15:12:30 +00:00
jupyterlab-code-formatter \
black \
isort \
2024-04-14 18:16:09 +00:00
"
ENV PKGS_NPM="bash-language-server \
sql-language-server \
unified-language-server \
vscode-css-languageserver-bin \
vscode-html-languageserver-bin \
vscode-json-languageserver-bin \
yaml-language-server"
RUN dnf5 install -y ${PKGS_DNF} ${PKGS_DNF_BUILD} && \
mkdir /jupyter && \
cd /jupyter && \
npm install ${PKGS_NPM} && \
python3 -m venv /venv && \
pip install -U pip && \
pip install ${PKGS_PIP} && \
jt -t monokai -f firacode && \
python -m bash_kernel.install && \
python -m mariadb_kernel.install && \
cargo install --git https://github.com/latex-lsp/texlab --locked && \
mv /root/.cargo/bin/texlab /usr/bin/ && \
rpm -e --nodeps systemd && \
rm -rf /root/.cache/* /root/.cargo && \
dnf5 remove -y ${PKGS_DNF_BUILD} && \
dnf5 autoremove -y && \
dnf5 clean all
WORKDIR /jupyter
ENTRYPOINT [ "tini" ]
CMD [ "jupyter", "--", "lab", "--allow-root", "--no-browser", "--autoreload" ]