-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (24 loc) · 994 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM rust:1.71 AS rust_base
FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04 AS cuda_base
FROM cuda_base AS merged_base
COPY --from=rust_base /usr/local/cargo /usr/local/cargo
COPY --from=rust_base /usr/local/rustup /usr/local/rustup
ENV PATH="/usr/local/cargo/bin:${PATH}"
ENV RUSTUP_HOME="/usr/local/rustup"
ENV CARGO_HOME="/usr/local/cargo"
ENV DEBIAN_FRONTEND noninteractive
RUN rustup component add rustfmt
RUN apt-get update && \
apt-get install -y lsb-release
RUN apt-get update && apt-get -y install cmake
RUN apt-get update && apt-get install -y python3.10 python3-pip
RUN apt-get update && apt-get install -y vim wget sudo software-properties-common gnupg git
RUN apt-get update && apt-get install ninja-build
RUN apt-get update && apt-get install -y cuda-nsight-systems-11-8
RUN apt-get update && apt-get install -y zip
RUN pip install numpy scipy matplotlib
# Set user specific environment variables
ENV USER root
ENV HOME /root
# Switch to user
USER ${USER}