Skip to content
Snippets Groups Projects
Commit bd552850 authored by Levatax's avatar Levatax
Browse files

fix: add dockerfile to devcontainer

parent fb69b2f1
No related branches found
No related tags found
No related merge requests found
Pipeline #999 passed
{ {
"name": "Go Dev Container", "name": "Golang Dev Container",
"image": "golang:1.20", "build": {
"features": { "dockerfile": "../Dockerfile"
"ghcr.io/devcontainers/features/docker-in-docker:1": {}
}, },
"postCreateCommand": "go mod tidy",
"settings": { "settings": {
"go.toolsManagement.autoUpdate": true "terminal.integrated.defaultProfile.linux": "bash"
}, },
"extensions": [ "extensions": [
"golang.go" "golang.go",
"ms-azuretools.vscode-docker"
], ],
"postCreateCommand": "go mod tidy", "forwardPorts": [
"forwardPorts": [3000], 3000
"mounts": [
"source=${localWorkspaceFolder}/.env,target=/workspace/.env,type=bind"
], ],
"remoteUser": "root", "features": {
"workspaceFolder": "/workspace", "ghcr.io/devcontainers/features/github-cli:1": {}
"containerEnv": { },
"GOPATH": "/go" "remoteUser": "root"
}
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment