Fix node install and make mock_llm script executable

This commit is contained in:
2025-05-21 07:37:14 +02:00
parent cad8e17afd
commit 6c9d5f542b
3 changed files with 10 additions and 12 deletions

View File

@@ -25,17 +25,16 @@ RUN apt-get update && \
apt-get install -y \ apt-get install -y \
google-chrome-stable google-chrome-stable
# Install Node.js
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
RUN apt-get install -y nodejs
RUN rm -rf /var/lib/apt/lists/* RUN rm -rf /var/lib/apt/lists/*
# Install Rust # Install Rust
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}" ENV PATH="/root/.cargo/bin:${PATH}"
# Install Node.js
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
ENV NVM_DIR=/root/.nvm
RUN . "$NVM_DIR/nvm.sh" && nvm install node
# Install llama.cpp # Install llama.cpp
RUN curl -O https://git.nielsgeens.be/api/packages/llm/generic/llama.cpp/b5269/llama.cpp.tar RUN curl -O https://git.nielsgeens.be/api/packages/llm/generic/llama.cpp/b5269/llama.cpp.tar
RUN tar -xf /llama.cpp.tar -C /usr/local/bin --wildcards --no-anchored "llama-*" RUN tar -xf /llama.cpp.tar -C /usr/local/bin --wildcards --no-anchored "llama-*"

View File

@@ -53,18 +53,17 @@ if [ -z "${SIA_INSTALL_NO_ITB}" ]; then
google-chrome-stable google-chrome-stable
fi fi
# Install Rust
curl https://sh.rustup.rs -sSf | bash -s -- -y
export PATH="/root/.cargo/bin:${PATH}"
# Install Node.js # Install Node.js
if [ -z "${SIA_INSTALL_NO_CORE}" ]; then if [ -z "${SIA_INSTALL_NO_CORE}" ]; then
echo "Installing Node.js..." echo "Installing Node.js..."
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
export NVM_DIR=/root/.nvm apt-get install -y nodejs
. "$NVM_DIR/nvm.sh" && nvm install node
fi fi
# Install Rust
curl https://sh.rustup.rs -sSf | bash -s -- -y
export PATH="/root/.cargo/bin:${PATH}"
# Install llama.cpp # Install llama.cpp
cd / cd /
curl -O https://git.nielsgeens.be/api/packages/llm/generic/llama.cpp/b5269/llama.cpp.tar curl -O https://git.nielsgeens.be/api/packages/llm/generic/llama.cpp/b5269/llama.cpp.tar

0
scripts/mock_llm.sh Normal file → Executable file
View File