terminaltes / Dockerfile
devstok's picture
Update Dockerfile
6d0562e verified
raw
history blame contribute delete
493 Bytes
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"]