vishalxl / nostr_console

Nostr console is an open-source twitter-like social network, direct chat app and group chat all bundled into one program. Built on the decentralized Nostr protocol.
GNU Affero General Public License v3.0
441 stars 33 forks source link

Readlinesync() isn't working in docker image #26

Closed vishalxl closed 2 years ago

vishalxl commented 2 years ago

For newly added bin/helloworld.dart, the run is like:


PS > dart run .\bin\helloworld.dart
Enter your name, anon: vishal
Hello vishal

PS > docker run   nostr_console
Enter your name, anon:
Should not print this if readlineSync works.

PS >

The difference is that inside docker image, the readlineSync function doesn't return anything.

vishalxl commented 2 years ago

Just need to use -it flag docker run -it hello