This repository has been archived on 2025-07-06. You can view files and clone it, but cannot push or open issues or pull requests.
docker-almalinux-jupyterins.../release/9/Dockerfile
Ben Vincent ac7bafa7b3
All checks were successful
Build / build (pull_request) Successful in 2m8s
feat: enable multirelease
- manage almalinux 8 and 9 deployments
2024-12-20 20:39:03 +11:00

44 lines
966 B
Docker

# Start with the AlmaLinux 8.10 base image
FROM git.query.consul/unkin/almalinux9:latest
# Clean and update the repository cache
RUN dnf clean all && \
dnf makecache
# Install packages
RUN dnf install -y python3.12 python3.12-pip
# Cleanup
RUN dnf clean all && \
rm -rf /var/cache/dnf
# create venv for jupyter
RUN python3.12 -m venv /opt/jupyter
# upgrade pip
RUN /opt/jupyter/bin/python -m pip install --upgrade pip
# install requirements for jupyterhub-singleinstance
RUN /opt/jupyter/bin/pip install \
'jupyterhub==5.2.1' \
'notebook==7.2.2'
# install additional python modules
RUN /opt/jupyter/bin/pip install \
numpy \
pandas \
matplotlib \
pyarrow \
pyyaml
# create a user, since we don't want to run as root
RUN useradd -m jupyter
ENV HOME=/home/jupyter
RUN mkdir $HOME/work
RUN chown jupyter:jupyter $HOME/work
WORKDIR $HOME/work
USER jupyter
# set the default command
CMD ["/opt/jupyter/bin/jupyterhub-singleuser"]