Skip to content

Commit 86767b5

Browse files
committed
Added devcontainer
1 parent 7c2bf6b commit 86767b5

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM alpine:latest
2+
3+
RUN apk add --update
4+
5+
##
6+
# git
7+
##
8+
9+
RUN apk add git openssh-client
10+
11+
##
12+
# go
13+
##
14+
15+
ARG GO_VERSION
16+
17+
ADD https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz /tmp/go.tar.gz
18+
RUN tar -C /opt -xzf /tmp/go.tar.gz
19+
ENV PATH="$PATH:/opt/go/bin"

.devcontainer/devcontainer.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"build": {
3+
"args": {
4+
"GO_VERSION": "1.25.3"
5+
},
6+
"dockerfile": "Dockerfile"
7+
},
8+
"customizations": {
9+
"vscode": {
10+
"extensions": [
11+
"golang.go"
12+
],
13+
"settings": {
14+
"remote.autoForwardPorts": false
15+
}
16+
}
17+
},
18+
"mounts": [
19+
"source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh,target=/root/.ssh,readonly,type=bind"
20+
],
21+
"name": "asticode/go-astits"
22+
}

0 commit comments

Comments
 (0)