mirror of
				https://github.com/h44z/wg-portal.git
				synced 2025-11-03 23:56:18 +00:00 
			
		
		
		
	WIP: smaller docker image
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user