added pip cache
All checks were successful
CI / Build Jupyter python Docker images (push) Successful in 8m30s

This commit is contained in:
2024-11-03 16:23:57 +08:00
parent a1828141be
commit cbc9db6d30

View File

@@ -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"