Skip to content

Commit 2007ab5

Browse files
committed
Update container create command (#176)
1 parent bc42e73 commit 2007ab5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎.devcontainer/devcontainer.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"build": {
66
"dockerfile": "Dockerfile",
77
"context": "..",
8-
"args": {
8+
"args": {
99
// Update 'VARIANT' to pick a Python version: 3, 3.10, 3.9, 3.8, 3.7, 3.6
1010
// Append -bullseye or -buster to pin to an OS version.
1111
// Use -bullseye variants on local on arm64/Apple Silicon.
@@ -20,7 +20,7 @@
2020
// Configure properties specific to VS Code.
2121
"vscode": {
2222
// Set *default* container specific settings.json values on container create.
23-
"settings": {
23+
"settings": {
2424
"python.defaultInterpreterPath": "/usr/local/bin/python",
2525
"python.linting.enabled": true,
2626
"python.linting.pylintEnabled": true,
@@ -34,7 +34,7 @@
3434
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
3535
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint"
3636
},
37-
37+
3838
// Add the IDs of extensions you want installed when the container is created.
3939
"extensions": [
4040
"ms-python.python",
@@ -47,7 +47,7 @@
4747
// "forwardPorts": [],
4848

4949
// Use 'postCreateCommand' to run commands after the container is created.
50-
"postCreateCommand": "pip3 install --user -r requirements.txt",
50+
"postCreateCommand": "python -m pip install --upgrade pip && pip3 install --user -r requirements.txt",
5151

5252
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
5353
"remoteUser": "vscode"

0 commit comments

Comments
 (0)