Skip to content

Commit 0bc894a

Browse files
Adrian Sanchezclaude
andcommitted
Install promptfoo CLI and upgrade uv in vscode-docker
- Add Node.js 22 and promptfoo CLI for LLM evaluation workflows - Upgrade uv from 0.9.27 to 0.11.1 - Install uv directly to /usr/local/bin via UV_INSTALL_DIR so that `uv self update` works correctly (previously broke due to mv) Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent 6eb5a8d commit 0bc894a

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

src/vscode-docker/Dockerfile

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,19 @@ RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | d
6464
apt-get install -y gh && \
6565
rm -rf /var/lib/apt/lists/*
6666

67-
# Install uv (Python package manager version 0.9.27)
68-
RUN curl -LsSf https://astral.sh/uv/0.9.27/install.sh | sh && \
69-
mv $HOME/.local/bin/uv /usr/local/bin/ && \
70-
mv $HOME/.local/bin/uvx /usr/local/bin/
67+
# Install Node.js (required for promptfoo)
68+
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
69+
apt-get install -y nodejs && \
70+
rm -rf /var/lib/apt/lists/*
71+
72+
# Install promptfoo CLI
73+
RUN npm install -g promptfoo
74+
75+
# Install uv (Python package manager version 0.11.1)
76+
# To upgrade: change the version here and rebuild. `uv self update` is not
77+
# supported because the standalone installer doesn't write receipt metadata
78+
# when UV_INSTALL_DIR is overridden.
79+
RUN curl -LsSf https://astral.sh/uv/0.11.1/install.sh | UV_INSTALL_DIR=/usr/local/bin sh
7180

7281
# Set up environment variables
7382
ENV PATH="/usr/local/go/bin:${PATH}"

0 commit comments

Comments
 (0)