jupyter/Containerfile
Szwendacz f3c565484f
All checks were successful
Build images / build-images-amd64 (push) Successful in 8m0s
Build images / build-images-arm64 (push) Successful in 12m42s
Build images / update-images-manifests (push) Successful in 14s
add usefull bash packages
2024-04-25 14:32:35 +02:00

65 lines
1.6 KiB
Docker

FROM registry.fedoraproject.org/fedora-minimal
ENV VIRTUAL_ENV=/venv
ENV LANG="C.UTF-8"
ENV PATH=/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV PKGS_DNF="python \
nodejs \
latex \
xelatex \
tini \
bind-utils \
iputils \
nmap \
nmap-ncat \
whois \
iproute \
wget \
rsync"
ENV PKGS_DNF_BUILD="cargo python3-devel"
ENV PKGS_PIP="jupyter \
bash_kernel \
mariadb_kernel \
jedi-language-server \
jupyterlab-lsp \
python-lsp-server[all] \
jupyterthemes \
jupyterlab-vim \
"
ENV PKGS_NPM="bash-language-server \
dockerfile-language-server-nodejs \
pyright \
sql-language-server \
typescript-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" ]