fix: Latest configuration for devcontainer.json and Dockerfile

This commit is contained in:
mdsanima 2024-01-09 14:29:00 +00:00 committed by Fini
parent 4659351526
commit e8572a9f41
2 changed files with 28 additions and 24 deletions

View file

@ -1,5 +1,5 @@
ARG VARIANT="3" ARG VARIANT=3
FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT} FROM mcr.microsoft.com/vscode/devcontainers/python:${VARIANT}
RUN apt-get update \ RUN apt-get update \
&& export DEBIAN_FRONTEND=noninteractive \ && export DEBIAN_FRONTEND=noninteractive \

View file

@ -1,13 +1,17 @@
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at: // For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.122.1/containers/python-3 // https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/python-3
{ {
"name": "Python 3", "name": "Python 3",
"build": { "build": {
"dockerfile": "Dockerfile", "dockerfile": "Dockerfile",
"context": "..", "context": "..",
"args": { "VARIANT": "3" } "args": {
"VARIANT": "3",
"NODE_VERSION": "none"
}
}, },
"customizations": {
"vscode": {
"settings": { "settings": {
"terminal.integrated.shell.linux": "/bin/bash", "terminal.integrated.shell.linux": "/bin/bash",
"python.pythonPath": "/usr/local/bin/python", "python.pythonPath": "/usr/local/bin/python",
@ -23,10 +27,10 @@
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle", "python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint" "python.linting.pylintPath": "/usr/local/py-utils/bin/pylint"
}, },
"extensions": [ "extensions": [
"ms-python.python" "ms-python.python"
], ]
}
},
"remoteUser": "vscode" "remoteUser": "vscode"
} }