Add docker-compose

This commit is contained in:
2020-03-16 00:11:20 +11:00
parent caee3c83bd
commit d51004cc07
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ const input = "input.txt"
func main() {
application, err := zombie.Init(input)
if err != nil {
log.Panicf("failed to init application: %v", err)
log.Panic(err.Error())
}
application.Run()
application.Stats()
+11
View File
@@ -0,0 +1,11 @@
version: "3"
services:
app:
image: golang:1.13
working_dir: /app
volumes:
- .:/app
- go-libs:/go/pkg
command: ["sh", "-c", "go run cmd/main.go"]
volumes:
go-libs: {}