updated Ganymede and python images

This commit is contained in:
2024-05-25 19:36:19 +08:00
parent 2c9db69064
commit 875acc9d94
6 changed files with 205 additions and 33 deletions

View File

@@ -7,23 +7,16 @@ RUN adduser jovyan -u 1000 --system -s /bin/sh -h /home/jovyan
USER jovyan
WORKDIR /home/jovyan
RUN python -m venv venv
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 venv/bin/pip install pylsp-mypy
RUN venv/bin/pip install notebook==5.7.16
ENV PATH="/home/jovyan/venv/bin/:$PATH"
RUN java -jar /ganymede-2.1.2.20230910.jar -i --copy-jar=true
RUN venv/bin/pip install jupyterhub
FROM alpine:3.19
RUN --mount=type=cache,target=/var/cache/apk/,sharing=locked \
apk update &&\
apk add python3 openjdk21-jre texlive texlive-xetex texlive-full
apk add python3 openjdk21-jre
RUN adduser jovyan -u 1000 --system -s /bin/sh -h /home/jovyan
USER jovyan
COPY --from=build /home/jovyan /home/jovyan