jupyter/Program/lua/Dockerfile

29 lines
874 B
Docker
Raw Normal View History

2024-12-25 16:31:30 +08:00
FROM eoelab.org:1027/eoeair/jupyter:py-c AS builder
2024-10-02 12:11:34 +08:00
2024-10-08 16:55:39 +08:00
ENV MAMBA_ROOT_PREFIX=/opt/mamba
2024-10-02 12:11:34 +08:00
2024-10-08 16:55:39 +08:00
COPY .condarc /opt/mamba/.condarc
2024-10-02 12:11:34 +08:00
USER root
2024-10-08 16:55:39 +08:00
RUN apt-get update --yes && apt-get install --yes wget && \
apt-get clean && rm -rf /var/lib/apt/lists/* && \
2024-10-18 16:06:16 +08:00
wget https://eoelab.org:1027/ben0i0d/sources/raw/branch/main/micromamba && \
2024-10-08 16:55:39 +08:00
chmod +x micromamba && \
./micromamba install --yes --root-prefix /opt/mamba xeus-lua -c conda-forge && \
./micromamba clean --yes --all
2024-12-25 16:31:30 +08:00
FROM eoelab.org:1027/eoeair/jupyter:py-c
2024-10-08 16:55:39 +08:00
COPY --chown="${NB_UID}:${NB_GID}" --from=builder /opt/mamba /opt/mamba
ENV PATH="/opt/mamba/bin:${PATH}"
USER root
2024-10-02 12:11:34 +08:00
2024-10-08 16:55:39 +08:00
RUN apt-get update --yes && apt-get install --yes --no-install-recommends lua5.4 && \
apt-get clean && rm -rf /var/lib/apt/lists/*
2024-10-02 12:11:34 +08:00
USER ${NB_UID}
2024-10-08 16:55:39 +08:00
RUN jupyter kernelspec install /opt/mamba/share/jupyter/kernels/xlua --sys-prefix