Add a devcontainer for development

This commit is contained in:
Corentin Mors
2025-04-28 16:34:17 +02:00
parent 94790aeb1f
commit c958b32269
2 changed files with 23 additions and 0 deletions

4
.devcontainer/Dockerfile Normal file
View File

@@ -0,0 +1,4 @@
FROM golang:1.22-bullseye
# Creates an app directory to hold your apps source code
WORKDIR /app

View File

@@ -0,0 +1,19 @@
{
"name": "Go PDF Sign",
"dockerFile": "Dockerfile",
"runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"],
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.shell.linux": "/bin/bash",
"go.toolsManagement.checkForUpdates": "local",
"go.useLanguageServer": true,
"go.gopath": "/go"
},
"extensions": ["golang.go"]
}
},
"forwardPorts": [],
"postCreateCommand": "go mod download",
"remoteUser": "root"
}