jupyter/Containerfile
Maciej Lebiest 720607e5b3
All checks were successful
Build images / build-images-arm64 (push) Successful in 5m53s
Build images / build-images-amd64 (push) Successful in 9m19s
Build images / update-images-manifests (push) Successful in 18s
fix build with python3.13
2024-11-25 16:14:06 +01:00

63 lines
1.5 KiB
Docker

FROM forgejo.maciej.cloud/pkg/mc-fedora-base
ENV VIRTUAL_ENV=/venv
ENV PATH=/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV PKGS_DNF="python \
git \
nodejs \
tini \
bind-utils \
iputils \
nmap \
nmap-ncat \
whois \
iproute \
wget \
rsync"
#ENV PKGS_DNF_BUILD="cargo python3-devel systemd"
# standard-imghdr is a dependency removed from base python in 3.13, so it
# need to be also installed separately for now
ENV PKGS_PIP="jupyter \
standard-imghdr \
bash_kernel \
mariadb_kernel \
jedi-language-server \
jupyterlab-lsp \
python-lsp-server[all] \
rope \
jupyterthemes \
jupyterlab-vim \
jupyterlab-git \
lckr_jupyterlab_variableinspector \
jupyterlab-code-formatter \
black \
isort \
"
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} && \
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" ]