Skip to content

Commit 918e346

Browse files
committed
fix devcontainer
1 parent a17b0cc commit 918e346

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,11 @@ RUN pip install --no-cache-dir ruff
6464
WORKDIR /tmp/install
6565

6666
# Copy pyproject.toml with correct ownership
67-
COPY --chown=$USERNAME:$USERNAME pyproject.toml .
67+
COPY --chown=$USERNAME:$USERNAME . .
6868

6969
# Install dependencies as non-root user
70-
RUN pip install --no-cache-dir -e ".[test,gpu]"
70+
# add ".[test,gpu]"" if required
71+
RUN pip install --no-cache-dir -e "."
7172

7273
# Set final working directory
7374
WORKDIR /workspace

.devcontainer/devcontainer.linux.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@
5959
// "--gpus=all", //use only with GPU
6060
// "--runtime=nvidia" //use only with GPU
6161
],
62-
"postCreateCommand": "python -m pip install -e '.[test,gpu]'",
62+
"postCreateCommand": "python -m pip install -e '.'", //[test,gpu]
6363
"remoteUser": "vscode"
6464
}

.devcontainer/devcontainer.wsl2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@
6868
// "--gpus=all", //use only with GPU
6969
// "--runtime=nvidia" //use only with GPU
7070
],
71-
"postCreateCommand": "python -m pip install -e '.[test,gpu]'",
71+
"postCreateCommand": "python -m pip install -e '.'", //[test,gpu]
7272
"remoteUser": "vscode"
7373
}

0 commit comments

Comments
 (0)