Skip to content

Instantly share code, notes, and snippets.

@askareija
Last active June 21, 2024 06:53
Show Gist options
  • Save askareija/6f703849de5f81dbccefe16e754151bf to your computer and use it in GitHub Desktop.
Save askareija/6f703849de5f81dbccefe16e754151bf to your computer and use it in GitHub Desktop.
Newest devcontainer config for Visual Studio Code
{
"name": "Devcontainer app",
"dockerFile": "Dockerfile",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"exodiusstudios.comment-anchors",
"esbenp.prettier-vscode",
"rjmacarthy.twinny",
"oven.bun-vscode"
],
"settings": {
"terminal.integrated.defaultProfile.linux": "bash"
}
}
},
"mounts": [
{
"source": "/etc/localtime",
"target": "/etc/localtime",
"type": "bind"
},
{
"source": "/etc/timezone",
"target": "/etc/timezone",
"type": "bind"
}
],
"containerEnv": {
"TZ": "Asia/Jakarta"
},
// NOTE: Set network, memory limit, cpus on running container
"runArgs": [
"--name=app-devcontainer",
"--cpus=2",
"--memory=2g",
"--network=proxynet",
"--add-host=host.docker.internal:host-gateway",
"--hostname=app-devcontainer"
],
"remoteUser": "bun"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment