From f3bca60f16f3f057055ec6e1cc00b92fcf326308 Mon Sep 17 00:00:00 2001 From: Walter Oggioni Date: Mon, 2 Sep 2024 08:39:41 +0800 Subject: [PATCH] added ai plugin to Jupyterhub --- jupyter-python/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jupyter-python/Dockerfile b/jupyter-python/Dockerfile index eb316f5..aa8c7a7 100644 --- a/jupyter-python/Dockerfile +++ b/jupyter-python/Dockerfile @@ -1,7 +1,7 @@ FROM alpine:3.19 AS build RUN --mount=type=cache,target=/var/cache/apk/,sharing=locked \ apk update &&\ - apk add python3 python3-dev pipx gcc g++ musl-dev linux-headers libffi-dev cargo cmake autoconf + apk add python3 python3-dev pipx gcc g++ musl-dev linux-headers libffi-dev cargo cmake autoconf swig ninja patchelf RUN adduser jovyan -u 1000 --system -s /bin/sh -h /home/jovyan USER jovyan WORKDIR /home/jovyan @@ -17,6 +17,10 @@ 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 jupyter-ai +RUN venv/bin/pip install langchain-openai + #RUN venv/bin/pip install pylsp-mypy ENV PATH="/home/jovyan/venv/bin/:$PATH"