Skip to content

Commit a878259

Browse files
authored
Merge pull request #22 from Azure-Samples/enchen/uv
Fix pip security vulnerability and uv installation
2 parents f29a1fa + 96f13d0 commit a878259

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
]
1818
}
1919
},
20-
"postCreateCommand": "cd server && pip install git+https://github.com/astral-sh/uv.git && uv sync",
20+
"postCreateCommand": "pip install --upgrade pip && cd server && pip install uv && uv sync",
2121
"remoteUser": "vscode",
2222
"hostRequirements": {
2323
"memory": "4gb"

server/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ ENV UV_LINK_MODE=copy \
2727
# Create virtual environment explicitly
2828
RUN python -m venv /app/.venv
2929

30+
# Upgrade pip in the virtual environment to fix security vulnerability GHSA-4xh5-x5gv-qwph
31+
RUN /app/.venv/bin/pip install --upgrade pip
32+
3033
# Copy dependency files
3134
COPY pyproject.toml uv.lock /app/
3235

0 commit comments

Comments
 (0)