2
1
Fork 0

go dev container

main
Sebastian Steger 2025-08-19 14:50:35 +00:00
parent 355dcc5a82
commit 1dd8106339
3 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,11 @@
FROM golang:1.25
RUN apt-get update && apt-get install -y build-essential
RUN go install github.com/go-delve/delve/cmd/dlv@latest
RUN go install -v github.com/cweill/gotests/gotests@v1.6.0
ARG USERNAME=developer
ARG USER_UID=1000
ARG USER_GID=$USER_UID
RUN groupadd --gid $USER_GID $USERNAME && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME
USER $USERNAME

View File

@ -0,0 +1,12 @@
{
"name": "Go Dev Container",
"build": {
"dockerfile": "Dockerfile"
},
"customizations": {
"vscode": { "extensions": [
"golang.go",
"gruntfuggly.todo-tree"
]}
}
}

8
go/.vscode/settings.json vendored 100644
View File

@ -0,0 +1,8 @@
{
"terminal.integrated.profiles.linux": {
"bash": {
"path": "bash",
"icon": "terminal-bash"
}
}
}