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 \
|
2024-09-14 20:01:30 +00:00
|
|
|
git \
|
2024-04-25 12:32:35 +00:00
|
|
|
nodejs \
|
|
|
|
tini \
|
|
|
|
bind-utils \
|
|
|
|
iputils \
|
|
|
|
nmap \
|
|
|
|
nmap-ncat \
|
|
|
|
whois \
|
|
|
|
iproute \
|
|
|
|
wget \
|
|
|
|
rsync"
|
2024-04-14 18:16:09 +00:00
|
|
|
|
2024-09-14 19:40:33 +00:00
|
|
|
#ENV PKGS_DNF_BUILD="cargo python3-devel systemd"
|
2024-11-25 15:14:06 +00:00
|
|
|
# standard-imghdr is a dependency removed from base python in 3.13, so it
|
|
|
|
# need to be also installed separately for now
|
2024-04-14 18:16:09 +00:00
|
|
|
ENV PKGS_PIP="jupyter \
|
2024-11-25 15:14:06 +00:00
|
|
|
standard-imghdr \
|
2024-04-14 18:16:09 +00:00
|
|
|
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"
|
|
|
|
|
2024-09-14 19:40:33 +00:00
|
|
|
RUN dnf5 install -y ${PKGS_DNF} && \
|
2024-04-14 18:16:09 +00:00
|
|
|
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 && \
|
|
|
|
dnf5 autoremove -y && \
|
|
|
|
dnf5 clean all
|
|
|
|
|
|
|
|
WORKDIR /jupyter
|
|
|
|
|
|
|
|
ENTRYPOINT [ "tini" ]
|
|
|
|
|
|
|
|
CMD [ "jupyter", "--", "lab", "--allow-root", "--no-browser", "--autoreload" ]
|