WIP: smaller docker image

This commit is contained in:
Christoph Haas
2021-04-08 09:23:48 +02:00
parent 96215c4f0e
commit f793ece922
11 changed files with 45 additions and 30 deletions

View File

@@ -8,6 +8,7 @@ import (
"syscall"
"time"
"git.prolicht.digital/pub/healthcheck"
"github.com/h44z/wg-portal/internal/server"
"github.com/sirupsen/logrus"
)
@@ -26,6 +27,9 @@ func main() {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
// start health check service on port 11223
healthcheck.New(healthcheck.WithContext(ctx)).Start()
service := server.Server{}
if err := service.Setup(ctx); err != nil {
logrus.Fatalf("setup failed: %v", err)