Skip to content

Commit 3931934

Browse files
committed
Fix devcontainer
1 parent bd2b1d3 commit 3931934

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
22
// https://github.com/microsoft/vscode-dev-containers/tree/v0.202.5/containers/python-3
33
{
4-
"name": "Python 3",
5-
// "runArgs": [
6-
// "--init"
7-
// ],
4+
"name": "Docker Database Backup",
85
"build": {
9-
"dockerfile": "Dockerfile"
6+
"dockerfile": "Dockerfile",
7+
"context": "."
108
},
119
// Set *default* container specific settings.json values on container create.
1210
"customizations": {
@@ -38,15 +36,12 @@
3836
],
3937
}
4038
},
41-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
42-
// "forwardPorts": [],
43-
// Use 'postCreateCommand' to run commands after the container is created.
44-
// "postCreateCommand": "pip-sync",
45-
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
39+
"postCreateCommand": "pip-sync",
4640
"features": {
4741
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
4842
"moby": "false"
4943
}
5044
},
51-
// "remoteUser": "root"
45+
// root required for pip-sync to install packages globally
46+
"remoteUser": "root"
5247
}

0 commit comments

Comments
 (0)