From b931eacf319c24c7ab548979f5460904f85719fd Mon Sep 17 00:00:00 2001 From: Walter Oggioni Date: Mon, 2 Sep 2024 19:52:29 +0800 Subject: [PATCH] switched jupyter image to Debian --- jupyter-python/Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/jupyter-python/Dockerfile b/jupyter-python/Dockerfile index ee402b0..0325470 100644 --- a/jupyter-python/Dockerfile +++ b/jupyter-python/Dockerfile @@ -2,11 +2,11 @@ FROM debian:stable AS build RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ --mount=type=cache,target=/var/lib/apt,sharing=locked \ apt update &&\ - apt install python3 python3-dev pipx gcc g++ linux-headers-amd64 libffi-dev cargo cmake autoconf swig ninja-build patchelf meson -RUN adduser jovyan -u 1000 --system -s /bin/sh -h /home/jovyan + apt install -y python3 python3-dev pipx gcc g++ linux-headers-amd64 libffi-dev cargo cmake autoconf swig ninja-build patchelf meson python3-faiss +RUN adduser -u 1000 --system --shell /bin/sh --home /home/jovyan jovyan USER jovyan WORKDIR /home/jovyan -RUN python -m venv venv +RUN python3 -m venv venv RUN venv/bin/pip install solders RUN venv/bin/pip install solana RUN venv/bin/pip install numpy @@ -18,7 +18,7 @@ RUN venv/bin/pip install notebook RUN venv/bin/pip install ipywidgets RUN venv/bin/pip install jupyterlab-lsp RUN venv/bin/pip install python-lsp-server[yapf,rope,pyflakes] -RUN venv/bin/pip install --no-binary :all: faiss-cpu +# RUN venv/bin/pip install --no-binary :all: faiss-cpu RUN venv/bin/pip install jupyter-ai RUN venv/bin/pip install langchain-openai @@ -29,8 +29,8 @@ FROM debian:stable RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ --mount=type=cache,target=/var/lib/apt,sharing=locked \ apt update &&\ - apt install python3 -RUN adduser jovyan -u 1000 --system -s /bin/sh -h /home/jovyan + apt install -y python3 +RUN adduser -u 1000 --system --shell /bin/sh --home /home/jovyan jovyan USER jovyan COPY --from=build /home/jovyan /home/jovyan COPY jupyter_server_config.py docker_healthcheck.py /etc/jupyter/