Skip to content

Commit 7dbc229

Browse files
authored
Added devcontainer specification (#1989)
1 parent bb450fc commit 7dbc229

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM mcr.microsoft.com/devcontainers/python:3.14
2+
3+
# Install GDB
4+
RUN apt-get update && \
5+
apt-get install -y --no-install-recommends gdb \
6+
&& apt-get clean \
7+
&& rm -rf /var/lib/apt/lists/*
8+
9+
# Switch to non-root user and install Python packages
10+
USER vscode
11+
RUN python -m pip install black flake8 tox

.devcontainer/devcontainer.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "debugpy Development",
3+
"build": {
4+
"dockerfile": "Dockerfile"
5+
},
6+
7+
"features": {
8+
"ghcr.io/devcontainers/features/git:1": {}
9+
},
10+
11+
"remoteUser": "vscode"
12+
}

0 commit comments

Comments
 (0)