Skip to content

Commit

Permalink
Merge pull request #7 from myoung34/devcontainers
Browse files Browse the repository at this point in the history
test dev containers
  • Loading branch information
myoung34 authored Jul 2, 2024
2 parents 3ea2d86 + 19a1066 commit 1ba646d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM golang:1.22
11 changes: 11 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "GoProject",
"dockerFile": "Dockerfile",
"postCreateCommand": "go mod download",
"containerEnv": {
"MY_VARIABLE": "1"
},
"shutdownAction": "none",
"privileged": true,
"capAdd": []
}
5 changes: 5 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
services:
dev:
build:
context: .
dockerfile: Dockerfile

0 comments on commit 1ba646d

Please sign in to comment.