jupyter/Program/rust/Dockerfile

23 lines
679 B
Docker
Raw Normal View History

2024-12-25 16:31:30 +08:00
FROM eoelab.org:1027/eoeair/jupyter:py-c
2024-10-02 12:11:34 +08:00
USER root
2024-10-18 17:42:42 +08:00
2024-10-02 12:11:34 +08:00
ENV CARGO_HOME=/opt/rust/.cargo \
RUSTUP_HOME=/opt/rust/.rust \
2024-10-18 17:42:42 +08:00
PATH="$PATH:/opt/rust/.cargo/bin" \
2024-10-02 12:11:34 +08:00
CARGO_HTTP_MULTIPLEXING=false
RUN mkdir -p /opt/rust/.cargo /opt/rust/.rust && \
apt-get update --yes && \
apt-get install --yes --no-install-recommends build-essential && \
apt-get clean && rm -rf /var/lib/apt/lists/*
COPY config /opt/rust/.cargo/config
RUN bash /opt/rust/rustup-init.sh -y && \
cargo install evcxr_jupyter && \
evcxr_jupyter --install && \
rm /opt/rust/rustup-init.sh && \
2024-10-18 17:42:42 +08:00
mv $HOME/.local/share/jupyter/kernels/rust /opt/base/share/jupyter/kernels/
2024-10-02 12:11:34 +08:00
USER $NB_USER