Skip to content

Commit 3ade9ff

Browse files
committed
fix local-dev bug
1 parent a5eae61 commit 3ade9ff

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

container/Dockerfile.vllm

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,14 +297,46 @@ RUN apt-get update -y && \
297297
apt-get install -y --no-install-recommends \
298298
# Install utilities
299299
nvtop \
300+
wget \
300301
tmux \
301302
vim \
302303
autoconf \
303304
automake \
304305
libtool \
305306
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 && \
306322
rm -rf /var/lib/apt/lists/*
307323

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+
308340
# https://code.visualstudio.com/remote/advancedcontainers/add-nonroot-user
309341
# Will use the default ubuntu user, but give sudo access
310342
# 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
346378
RUN mkdir -p /home/$USERNAME/.cache/
347379

348380
ENTRYPOINT ["/opt/nvidia/nvidia_entrypoint.sh"]
349-
CMD []
381+
CMD []

0 commit comments

Comments
 (0)