FROM debian:bookworm # Install dependencies RUN apt-get update && apt-get install -y \ wget \ curl \ git \ bash \ openssh-client # Download GoTTY RUN wget https://github.com/yudai/gotty/releases/download/v1.0.1/gotty_linux_amd64.tar.gz && \ tar -xzf gotty_linux_amd64.tar.gz && \ mv gotty /usr/local/bin/ && \ rm gotty_linux_amd64.tar.gz # Expose port EXPOSE 7860 # Run gotty with writable bash (allow all origins, no credentials for demo) CMD ["gotty", "-w", "-p", "7860", "--permit-write", "/bin/bash"]