[devcontainer] Fix mount and GPU & Support rust dev (#2978)

This commit is contained in:
Byron Hsu
2025-01-19 16:34:01 +08:00
committed by GitHub
parent d33cbb7e58
commit 53cc91e504
2 changed files with 13 additions and 2 deletions

View File

@@ -15,6 +15,9 @@
]
}
},
"workspaceFolder": "/sgl-workspace/sglang",
"forwardPorts": []
"forwardPorts": [],
"runArgs": [
"--gpus",
"all"
]
}

View File

@@ -18,6 +18,8 @@ RUN apt-get update && apt-get install -y \
silversearcher-ag \
cloc \
unzip \
pkg-config \
libssl-dev \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean
@@ -63,6 +65,12 @@ RUN wget https://github.com/Kitware/CMake/releases/download/v3.31.1/cmake-3.31.1
&& cp -r cmake-3.31.1-linux-x86_64/share/* /usr/local/share/ \
&& rm -rf cmake-3.31.1-linux-x86_64 cmake-3.31.1-linux-x86_64.tar.gz
# Install uv
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
# Install rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
# Add yank script
COPY --chown=root:root <<-"EOF" /usr/local/bin/yank
#!/bin/bash