Simple docker image for local develop with Go. Image at Docker Hub is Here mztnnrt/go-local
You can volume mount and then you set working_dir
property directory located main.go
, you can live reloading.
.
├── README.md
├── backend
│ ├── main.go
│ ├── go.mod
│ └── go.sum
└── docker-compose.yaml
go-local/sample/docker-compose.yaml
Lines 1 to 14 in 1ed2b84
We prepare sample for quick start, you start below command.
cd sample
docker compose up
Then you curl localhost:8080
, you can received response from api server.