FROM ubuntu:22.04 WORKDIR /app RUN apt-get update && apt-get install -y curl bash && rm -rf /var/lib/apt/lists/* # Install gotty RUN curl -LO https://github.com/sorenisanerd/gotty/releases/download/v1.5.0/gotty_v1.5.0_linux_amd64.tar.gz \ && tar xzf gotty_v1.5.0_linux_amd64.tar.gz \ && mv gotty /usr/local/bin/ \ && chmod +x /usr/local/bin/gotty \ && rm gotty_v1.5.0_linux_amd64.tar.gz EXPOSE 7860 CMD ["gotty", "--port", "7860", "--permit-write", "--reconnect", "bash"]