add interactive and tty to dockerfile, closes #1870

Followup form #1873 and #2604 for issue #1870.