diff --git a/console.go b/console.go index a88f7a7..f6d7047 100644 --- a/console.go +++ b/console.go @@ -120,6 +120,8 @@ func execInput(input string) error { return nil case "exit": os.Exit(0) + case "": + return nil } // Prepare the command to execute. diff --git a/dockerfile b/dockerfile index 428ce24..3d57fb8 100644 --- a/dockerfile +++ b/dockerfile @@ -2,4 +2,4 @@ from golang:latest copy . /go run go build -o console console.go expose 4444 -# entrypoint ./console \ No newline at end of file +entrypoint /bin/bash \ No newline at end of file