File size: 540 Bytes
e864da2 be5e10c e864da2 be5e10c e864da2 be5e10c e864da2 be5e10c e864da2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 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"] |