File size: 612 Bytes
027d8d9
3f7ca19
 
027d8d9
 
 
 
3f7ca19
027d8d9
 
 
 
 
 
 
3f7ca19
 
 
027d8d9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM debian:bookworm-slim

RUN apt-get update && apt-get install -y \
    bash curl wget git nano vim htop unzip zip \
    build-essential ca-certificates procps \
    libwebsockets-dev && \
    rm -rf /var/lib/apt/lists/*

# Install ttyd properly via build (more stable than binary)
RUN apt-get update && apt-get install -y \
    cmake g++ git libjson-c-dev libwebsockets-dev \
    && git clone https://github.com/tsl0922/ttyd.git \
    && cd ttyd && mkdir build && cd build \
    && cmake .. && make && make install \
    && cd / && rm -rf ttyd

EXPOSE 7860

CMD ["ttyd", "-p", "7860", "-i", "0.0.0.0", "bash"]