d
File size: 492 Bytes
982b100
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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"]