fix: resolve CodeQL cpp issue (#2305)

This commit is contained in:
Yineng Zhang
2024-12-01 23:55:19 +08:00
committed by GitHub
parent 47eb139f81
commit 7301a39b13
2 changed files with 54 additions and 1 deletions

View File

@@ -4,7 +4,6 @@ FROM lmsysorg/sglang:latest
# Install development tools and utilities
RUN apt-get update && apt-get install -y \
gdb \
cmake \
ninja-build \
vim \
tmux \
@@ -50,6 +49,13 @@ RUN curl -L https://github.com/clangd/clangd/releases/download/18.1.3/clangd-lin
&& cp -r clangd_18.1.3/lib/* /usr/local/lib/ \
&& rm -rf clangd_18.1.3 clangd.zip
# Install CMake
RUN curl -L https://cmake.org/download/#:~:text=cmake%2D3.31.1%2Dlinux%2Dx86_64.tar.gz -o cmake.tar.gz \
&& tar -xzf cmake.tar.gz \
&& cp -r cmake-3.31.1-linux-x86_64/bin/* /usr/local/bin/ \
&& cp -r cmake-3.31.1-linux-x86_64/share/* /usr/local/share/ \
&& rm -rf cmake-3.31.1-linux-x86_64 cmake.tar.gz
# Add yank script
COPY --chown=root:root <<-"EOF" /usr/local/bin/yank
#!/bin/bash