Compare commits
2 Commits
b931eacf31
...
bf86929983
Author | SHA1 | Date | |
---|---|---|---|
bf86929983
|
|||
f3bca60f16
|
@@ -1,7 +1,8 @@
|
|||||||
FROM alpine:3.19 AS build
|
FROM debian:stable AS build
|
||||||
RUN --mount=type=cache,target=/var/cache/apk/,sharing=locked \
|
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
|
||||||
apk update &&\
|
--mount=type=cache,target=/var/lib/apt,sharing=locked \
|
||||||
apk add python3 python3-dev pipx gcc g++ musl-dev linux-headers libffi-dev cargo cmake autoconf
|
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
|
RUN adduser jovyan -u 1000 --system -s /bin/sh -h /home/jovyan
|
||||||
USER jovyan
|
USER jovyan
|
||||||
WORKDIR /home/jovyan
|
WORKDIR /home/jovyan
|
||||||
@@ -17,13 +18,18 @@ RUN venv/bin/pip install notebook
|
|||||||
RUN venv/bin/pip install ipywidgets
|
RUN venv/bin/pip install ipywidgets
|
||||||
RUN venv/bin/pip install jupyterlab-lsp
|
RUN venv/bin/pip install jupyterlab-lsp
|
||||||
RUN venv/bin/pip install python-lsp-server[yapf,rope,pyflakes]
|
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
|
#RUN venv/bin/pip install pylsp-mypy
|
||||||
ENV PATH="/home/jovyan/venv/bin/:$PATH"
|
ENV PATH="/home/jovyan/venv/bin/:$PATH"
|
||||||
|
|
||||||
FROM alpine:3.19
|
FROM debian:stable
|
||||||
RUN --mount=type=cache,target=/var/cache/apk/,sharing=locked \
|
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
|
||||||
apk update &&\
|
--mount=type=cache,target=/var/lib/apt,sharing=locked \
|
||||||
apk add python3
|
apt update &&\
|
||||||
|
apt install python3
|
||||||
RUN adduser jovyan -u 1000 --system -s /bin/sh -h /home/jovyan
|
RUN adduser jovyan -u 1000 --system -s /bin/sh -h /home/jovyan
|
||||||
USER jovyan
|
USER jovyan
|
||||||
COPY --from=build /home/jovyan /home/jovyan
|
COPY --from=build /home/jovyan /home/jovyan
|
||||||
|
Reference in New Issue
Block a user