Skip to content

Commit 83ed482

Browse files
committed
Enhance devcontainer setup by upgrading pip and ensuring virtual environment configuration during installation
1 parent 9b09bfe commit 83ed482

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.devcontainer/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"name": "evaluatePython",
33
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bookworm",
4-
"postCreateCommand": "pip install poetry==1.8.3 && poetry install",
4+
"postCreateCommand": "python -m pip install --upgrade pip && python -m pip install poetry==1.8.3 && poetry config virtualenvs.in-project true && poetry install",
5+
"postStartCommand": "python -m venv .venv >/dev/null 2>&1 || true && . .venv/bin/activate && poetry install",
56
"forwardPorts": [8080],
67
"customizations": {
78
"vscode": {

0 commit comments

Comments
 (0)