jp-colab (latest)

Published 2023-02-11 15:23:16 -08:00 by Mark

Installation

docker pull git.betalupi.com/mark/jp-colab:latest
sha256:faf4c14b2567c49e8b1bbcdf57648c53ff950f57f71a047aeff911dbdb5243df

Image Layers

ADD file:b03d13d345c29f69557f410c8504e748226756d1f48e5abdb63cd40179b2640c in /
CMD ["bash"]
ARG NB_USER=jovyan
ARG NB_UID=1000
ARG NB_GID=100
SHELL [/bin/bash -o pipefail -c]
USER root
ENV DEBIAN_FRONTEND=noninteractive
|3 NB_GID=100 NB_UID=1000 NB_USER=jovyan /bin/bash -o pipefail -c apt-get update --yes && apt-get upgrade --yes && apt-get install --yes --no-install-recommends bzip2 ca-certificates fonts-liberation locales wget sudo tini gcc make gnupg curl build-essential cm-super dvipng git nano tzdata unzip vim openssh-client less ffmpeg pandoc texlive-full build-essential cm-super dvipng ffmpeg && apt-get clean && rm -rf /var/lib/apt/lists/* && echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen
ENV CONDA_DIR=/opt/conda SHELL=/bin/bash NB_USER=jovyan NB_UID=1000 NB_GID=100 LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8
ENV PATH=/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin HOME=/home/jovyan
COPY file:196cd5449d02ce879c150c7627b3edb0965abc9af575ab4398f69ba6c3b3739c in /usr/local/bin/fix-permissions
/bin/bash -o pipefail -c chmod a+rx /usr/local/bin/fix-permissions
/bin/bash -o pipefail -c sed -i 's/^#force_color_prompt=yes/force_color_prompt=yes/' /etc/skel/.bashrc && echo 'eval "$(command conda shell.bash hook 2> /dev/null)"' >> /etc/skel/.bashrc
/bin/bash -o pipefail -c echo "auth requisite pam_deny.so" >> /etc/pam.d/su && sed -i.bak -e 's/^%admin/#%admin/' /etc/sudoers && sed -i.bak -e 's/^%sudo/#%sudo/' /etc/sudoers && useradd --no-log-init --create-home --no-user-group -u "${NB_UID}" --shell /bin/bash "${NB_USER}" && mkdir -p "${CONDA_DIR}" && chown "${NB_USER}:${NB_GID}" "${CONDA_DIR}" && chmod g+w /etc/passwd && fix-permissions "${HOME}" && fix-permissions "${CONDA_DIR}"
USER 1000
ARG PYTHON_VERSION=3.10
COPY --chown=1000:100file:179851bbfc08bd0439e6af387106e34027bafd90d023177d76d0a3735a0a5c4b in /opt/conda/.condarc
WORKDIR /tmp
|1 PYTHON_VERSION=3.10 /bin/bash -o pipefail -c set -x && arch=$(uname -m) && if [ "${arch}" = "x86_64" ]; then arch="64"; fi && wget -qO /tmp/micromamba.tar.bz2 "https://micromamba.snakepit.net/api/micromamba/linux-${arch}/latest" && tar -xvjf /tmp/micromamba.tar.bz2 --strip-components=1 bin/micromamba && rm /tmp/micromamba.tar.bz2 && PYTHON_SPECIFIER="python=${PYTHON_VERSION}" && if [[ "${PYTHON_VERSION}" == "default" ]]; then PYTHON_SPECIFIER="python"; fi && ./micromamba install --root-prefix="${CONDA_DIR}" --prefix="${CONDA_DIR}" --yes "${PYTHON_SPECIFIER}" "mamba" "notebook" "jupyterhub" "jupyterlab" && rm micromamba && mamba list python | grep "^python " | tr -s " " | cut -d " " -f 1,2 >> "${CONDA_DIR}/conda-meta/pinned" && mamba clean --all -f -y && npm cache clean --force && jupyter lab clean && rm -rf "/home/${NB_USER}/.cache/yarn" && fix-permissions "${CONDA_DIR}" && fix-permissions "/home/${NB_USER}"
EXPOSE 8888
ENTRYPOINT ["tini" "-g" "--"]
CMD ["start-notebook.sh"]
COPY multi:4932083dbc4023e1fe32f24c961db278e35407fa61a2f7733a709fbe67b4ae6f in /usr/local/bin/
COPY file:23f3c526c19b6799806dda0754eebef052ee9d225573caa1a007f76177512d63 in /etc/jupyter/
COPY --chown=1000:100file:418b8119d5a79fec269849d87cd70a165f8a443cd611dfd820642ec476178702 in /opt/conda/lib/R/etc/
USER root
|1 PYTHON_VERSION=3.10 /bin/bash -o pipefail -c mkdir "${HOME}/notebooks" && chown "${NB_UID}:${NB_GID}" "${HOME}/notebooks" && chmod u+rwx "${HOME}/notebooks"
VOLUME [/home/jovyan/notebooks]
|1 PYTHON_VERSION=3.10 /bin/bash -o pipefail -c mkdir -p "${HOME}/.jupyter" && chown "${NB_UID}:${NB_GID}" "${HOME}/.jupyter" && chmod u+rwx "${HOME}/.jupyter"
VOLUME [/home/jovyan/.jupyter]
HEALTHCHECK &{["CMD-SHELL" "wget -O- --no-verbose --tries=1 --no-check-certificate \thttp${GEN_CERT:+s}://localhost:8888${JUPYTERHUB_SERVICE_PREFIX:-/}api || exit 1"] "15s" "3s" "5s" '\x03'}
USER 1000
WORKDIR /home/jovyan
LABEL maintainer=Mark <mark@betalupi.com>
USER 1000
/bin/bash -o pipefail -c mamba install --yes "jupyterlab-git" "jupyterlab-link-share" && mamba clean --all -f -y && npm cache clean --force && jupyter lab clean && rm -rf "/home/${NB_USER}/.cache/yarn" && fix-permissions "${CONDA_DIR}" && fix-permissions "/home/${NB_USER}"
LABEL maintainer=Mark <mark@betalupi.com>
USER 1000
/bin/bash -o pipefail -c mamba install --yes "jupyter_server>=2.0.0" "beautifulsoup4" "requests" "schedule" "altair" "bokeh" "bottleneck" "cloudpickle" "conda-forge::blas=*=openblas" "cython" "dask" "dill" "h5py" "ipympl" "ipywidgets" "matplotlib-base" "numba" "numpy" "numexpr" "pandas" "patsy" "protobuf" "pytables" "scikit-image" "scikit-learn" "scipy" "seaborn" "sqlalchemy" "statsmodels" "sympy" "widgetsnbextension" "xlrd" "tensorflow" "pytest" "ipython" && mamba clean --all -f -y && npm cache clean --force && jupyter lab clean && rm -rf "/home/${NB_USER}/.cache/yarn" && fix-permissions "${CONDA_DIR}" && fix-permissions "/home/${NB_USER}"
ENV XDG_CACHE_HOME=/home/jovyan/.cache/
/bin/bash -o pipefail -c MPLBACKEND=Agg python -c "import matplotlib.pyplot" && fix-permissions "/home/${NB_USER}"

Labels

Key Value
maintainer Mark <mark@betalupi.com>
Details
Container
2023-02-11 15:23:16 -08:00
1
OCI / Docker
linux/amd64
5.1 GiB
Versions (1) View all
latest 2023-02-11