Skip to content

Commit 8e4da31

Browse files
committed
Add devcontainer and bump dependencies
1 parent a83af79 commit 8e4da31

File tree

3 files changed

+2987
-8995
lines changed

3 files changed

+2987
-8995
lines changed

.devcontainer/devcontainer.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/go
3+
{
4+
"name": "Go",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/go:1.23-bookworm",
7+
"features": {
8+
"ghcr.io/devcontainers/features/node:1": {
9+
"nodeGypDependencies": true,
10+
"installYarnUsingApt": true,
11+
"version": "lts",
12+
"pnpmVersion": "latest",
13+
"nvmVersion": "latest"
14+
},
15+
"ghcr.io/devcontainers/features/go:1": {
16+
"version": "1.23.6"
17+
}
18+
},
19+
"customizations": {
20+
"vscode": {
21+
"extensions": [
22+
"timonwong.shellcheck",
23+
"ms-vscode.makefile-tools",
24+
"github.vscode-github-actions",
25+
"ms-azuretools.vscode-docker",
26+
"golang.go"
27+
],
28+
"settings": {
29+
"terminal.integrated.profiles.linux": {
30+
"zsh": {
31+
"path": "/usr/bin/zsh"
32+
}
33+
},
34+
"terminal.integrated.defaultProfile.linux": "zsh",
35+
"editor.formatOnPaste": false,
36+
"editor.formatOnSave": true,
37+
"editor.formatOnType": true,
38+
"files.trimTrailingWhitespace": true
39+
}
40+
}
41+
},
42+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
43+
"forwardPorts": [
44+
8080
45+
],
46+
// Use 'postCreateCommand' to run commands after the container is created.
47+
"postCreateCommand": "echo deb http://deb.debian.org/debian bookworm-backports main | sudo tee -a /etc/apt/sources.list.d/bookworm-backports.list && sudo apt-get update && sudo apt install -y libwebp-dev/bookworm-backports && npm install"
48+
// Configure tool-specific properties.
49+
// "customizations": {},
50+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
51+
// "remoteUser": "root"
52+
}

0 commit comments

Comments
 (0)