mirror of
https://github.com/wahyd4/zombie.git
synced 2026-08-09 04:35:54 +10:00
Add docker-compose
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
@@ -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: {}
|
||||
Reference in New Issue
Block a user