Skip to content

Instantly share code, notes, and snippets.

@chrisliatas
Created March 23, 2024 19:59
Show Gist options
  • Save chrisliatas/416838880636b8d64993c46922c60539 to your computer and use it in GitHub Desktop.
Save chrisliatas/416838880636b8d64993c46922c60539 to your computer and use it in GitHub Desktop.
devcontainer.json for a development environment. Combined with Dockerfile from comments.
{
"name": "Development Container",
"build": {
"dockerfile": "Dockerfile",
"context": "..",
"args": {
"VARIANT": "3.11",
"VARIANT_SFX": "-slim-bookworm",
"QUARTO_REL": "1.5.25",
"FONTS_VERSION": "3.1.1"
}
},
"containerEnv": {
"OPENAI_API_KEY": "${localEnv:OPENAI_API_KEY}"
},
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-toolsai.jupyter",
"ms-python.vscode-pylance",
"visualstudioexptteam.vscodeintellicode",
"ms-python.black-formatter",
"GitHub.copilot"
],
"settings": {
"terminal.integrated.profiles.linux": {
"zsh": {
"path": "/usr/bin/zsh"
}
},
"terminal.integrated.defaultProfile.linux": "zsh",
"[python]": {
"editor.rulers": [80]
},
"editor.formatOnSave": true
}
}
},
"remoteUser": "vscode"
}
@chrisliatas
Copy link
Author

Combine in vs code .devcontainers with this Dockerfile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment