diff --git a/server/app/app.go b/server/app/app.go index 10064be..991f5cc 100644 --- a/server/app/app.go +++ b/server/app/app.go @@ -28,6 +28,7 @@ import ( "net" "os" "os/signal" + "syscall" "time" "github.com/golang/protobuf/proto" @@ -250,7 +251,7 @@ func (a *App) Run() { pb.RegisterGRPCForwarderServer(a.grpcServer, a.Server) var stopChan = make(chan os.Signal, 2) - signal.Notify(stopChan) + signal.Notify(stopChan, os.Interrupt, syscall.SIGTERM) var errChan = make(chan error) go func() { diff --git a/server/dev.Dockerfile b/server/dev.Dockerfile index ce1cad3..c880289 100644 --- a/server/dev.Dockerfile +++ b/server/dev.Dockerfile @@ -7,6 +7,5 @@ ADD .. /app RUN apk add make build-base -RUN go install github.com/wadey/gocovmerge@v0.0.0-20160331181800-b5bfa59ec0ad && \ - go install github.com/onsi/ginkgo/v2/ginkgo@v2.19.1 && \ +RUN go install github.com/onsi/ginkgo/v2/ginkgo@v2.19.1 && \ go mod tidy