File size: 493 Bytes
67fd5a2
 
 
6d0562e
67fd5a2
6d0562e
67fd5a2
6d0562e
67fd5a2
 
 
 
 
6d0562e
 
67fd5a2
 
6d0562e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM ubuntu:20.04

ENV DEBIAN_FRONTEND=noninteractive
ENV CMD="ttyd -p 3000 bash"

# Install ttyd dan Python
RUN apt update && \
    apt install -y curl git build-essential cmake g++ libjson-c-dev libwebsockets-dev bash python3 python3-pip && \
    git clone https://github.com/tsl0922/ttyd.git && \
    cd ttyd && mkdir build && cd build && \
    cmake .. && make && make install && \
    cd / && rm -rf ttyd

COPY entrypoint.py /entrypoint.py

EXPOSE 7860

CMD ["python3", "/entrypoint.py"]