File tree Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Original file line number Diff line number Diff line change @@ -297,14 +297,46 @@ RUN apt-get update -y && \
297
297
apt-get install -y --no-install-recommends \
298
298
# Install utilities
299
299
nvtop \
300
+ wget \
300
301
tmux \
301
302
vim \
302
303
autoconf \
303
304
automake \
304
305
libtool \
305
306
net-tools \
307
+ git \
308
+ # Build Dependencies
309
+ autoconf \
310
+ automake \
311
+ cmake \
312
+ git \
313
+ libtool \
314
+ meson \
315
+ net-tools \
316
+ ninja-build \
317
+ pybind11-dev \
318
+ # Rust build dependencies
319
+ clang \
320
+ libclang-dev \
321
+ protobuf-compiler && \
306
322
rm -rf /var/lib/apt/lists/*
307
323
324
+ # Rust environment setup
325
+ ENV RUSTUP_HOME=/usr/local/rustup \
326
+ CARGO_HOME=/usr/local/cargo \
327
+ PATH=/usr/local/cargo/bin:$PATH \
328
+ RUST_VERSION=1.89.0
329
+
330
+ # Define Rust target based on ARCH_ALT ARG
331
+ ARG RUSTARCH=${ARCH_ALT}-unknown-linux-gnu
332
+
333
+ # Install Rust
334
+ RUN wget --tries=3 --waitretry=5 "https://static.rust-lang.org/rustup/archive/1.28.1/${RUSTARCH}/rustup-init" && \
335
+ chmod +x rustup-init && \
336
+ ./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION --default-host ${RUSTARCH} && \
337
+ rm rustup-init && \
338
+ chmod -R a+w $RUSTUP_HOME $CARGO_HOME
339
+
308
340
# https://code.visualstudio.com/remote/advancedcontainers/add-nonroot-user
309
341
# Will use the default ubuntu user, but give sudo access
310
342
# Needed so files permissions aren't set to root ownership when writing from inside container
@@ -346,4 +378,4 @@ RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=$HOME/.comman
346
378
RUN mkdir -p /home/$USERNAME/.cache/
347
379
348
380
ENTRYPOINT ["/opt/nvidia/nvidia_entrypoint.sh"]
349
- CMD []
381
+ CMD []
You can’t perform that action at this time.
0 commit comments