Skip to content

Commit 1cde262

Browse files
authored
Update docker container (#197)
1 parent 52262bb commit 1cde262

3 files changed

Lines changed: 20 additions & 10 deletions

File tree

‎.devcontainer/Dockerfile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.238.0/containers/python-3/.devcontainer/base.Dockerfile
22

33
# [Choice] Python version (use -bullseye variants on local arm64/Apple Silicon): 3, 3.10, 3.9, 3.8, 3.7, 3.6, 3-bullseye, 3.10-bullseye, 3.9-bullseye, 3.8-bullseye, 3.7-bullseye, 3.6-bullseye, 3-buster, 3.10-buster, 3.9-buster, 3.8-buster, 3.7-buster, 3.6-buster
4-
ARG VARIANT="3.14.2-bullseye"
5-
FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}
4+
ARG VARIANT="3.14-bookworm"
5+
FROM mcr.microsoft.com/devcontainers/python:${VARIANT}
66

77
# Just Installation
88
COPY --from=ghcr.io/casey/just:latest /just /usr/local/bin/

‎.devcontainer/devcontainer.json‎

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2-
// https://github.com/microsoft/vscode-dev-containers/tree/v0.238.0/containers/python-3
2+
// https://github.com/devcontainers/images/tree/main/src/
33
{
44
"name": "Python 3",
55
"build": {
66
"dockerfile": "Dockerfile",
77
"context": "..",
88
"args": {
9-
// Update 'VARIANT' to pick a Python version: 3, 3.10, 3.9, 3.8, 3.7, 3.6
10-
// Append -bullseye or -buster to pin to an OS version.
11-
// Use -bullseye variants on local on arm64/Apple Silicon.
12-
"VARIANT": "3.14-bullseye",
13-
// Options
9+
"VARIANT": "3.14-bookworm",
1410
"NODE_VERSION": "none"
1511
}
1612
},
@@ -22,14 +18,27 @@
2218
// Set *default* container specific settings.json values on container create.
2319
"settings": {
2420
"python.autoComplete.extraPaths": ["/workspaces"],
25-
"python.defaultInterpreterPath": "/usr/local/bin/python"
21+
"python.defaultInterpreterPath": "/usr/local/bin/python",
22+
"editor.tabSize": 4,
23+
"files.autoSave": "afterDelay",
24+
"files.trimTrailingWhitespace": true,
25+
"terminal.integrated.localEchoStyle": "dim",
26+
"[python]": {
27+
"editor.defaultFormatter": "charliermarsh.ruff",
28+
"editor.formatOnSave": true,
29+
"editor.codeActionsOnSave": {
30+
"source.fixAll.ruff": "explicit",
31+
"source.organizeImports.ruff": "explicit"
32+
}
2633
},
2734

2835
// Add the IDs of extensions you want installed when the container is created.
2936
"extensions": [
37+
"Anthropic.claude-code",
38+
"DavidAnson.vscode-markdownlint",
3039
"ms-python.python",
3140
"ms-python.vscode-pylance",
32-
"Anthropic.claude-code",
41+
"ms-vscode-remote.remote-containers",
3342
"charliermarsh.ruff"
3443
]
3544
}

‎.vscode/extensions.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"recommendations": [
3+
"Anthropic.claude-code",
34
"DavidAnson.vscode-markdownlint",
45
"ms-python.python",
56
"ms-python.vscode-pylance",

0 commit comments

Comments
 (0)