{ "name": "Python Poetry Dev", "build": { "dockerfile": "Dockerfile", "args": { "USERNAME": "dev", "USER_UID": "1000", "USER_GID": "1000" } }, "features": { "ghcr.io/duduribeiro/devcontainer-features/neovim:1": { "version": "stable" } }, "customizations": { "vscode": { "extensions": [ "ms-python.python", "charliermarsh.ruff", "tamasfe.even-better-toml" ], "settings": { "python.defaultInterpreterPath": "/usr/local/bin/python", "editor.formatOnSave": true, "[python]": { "editor.defaultFormatter": "charliermarsh.ruff", "editor.codeActionsOnSave": { "source.organizeImports": "explicit" } } } } }, "runArgs": ["--privileged", "-v", "/dev:/dev"], "mounts": [ "source=${localEnv:XDG_RUNTIME_DIR}/ssh-agent.socket,target=/tmp/ssh-agent.socket,type=bind", "source=${env:HOME}/.config/nvim,target=/home/dev/.config/nvim,type=bind" ], "remoteEnv": { "SSH_AUTH_SOCK": "/tmp/ssh-agent.socket" }, "remoteUser": "dev", "postCreateCommand": "poetry install" }