diff --git a/jupyter-python/Dockerfile b/jupyter-python/Dockerfile index 3e3a337..a54aba4 100644 --- a/jupyter-python/Dockerfile +++ b/jupyter-python/Dockerfile @@ -7,20 +7,20 @@ RUN adduser -u 1000 --system --shell /bin/sh --home /home/jovyan jovyan USER jovyan WORKDIR /home/jovyan RUN python3 -m venv venv -RUN venv/bin/pip install solders -RUN venv/bin/pip install solana -RUN venv/bin/pip install numpy -RUN venv/bin/pip install matplotlib -RUN venv/bin/pip install jupyter-core -RUN venv/bin/pip install jupyterhub -RUN venv/bin/pip install jupyterlab -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 --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install solders +RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install solana +RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install numpy +RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install matplotlib +RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install jupyter-core +RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install jupyterhub +RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install jupyterlab +RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install notebook +RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install ipywidgets +RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install jupyterlab-lsp +RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 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 --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install jupyter-ai +RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install langchain-openai gpt4all langchain_ollama #RUN venv/bin/pip install pylsp-mypy ENV PATH="/home/jovyan/venv/bin/:$PATH"