Spaces:
Paused
Paused
Download Dockerfile from devstok/terminaltes: direct link, hf CLI and curl.
- Browser
- Download file 493 Bytes
-
https://huggingface.co/spaces/devstok/terminaltes/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/devstok/terminaltes/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/devstok/terminaltes/resolve/main/Dockerfile
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"] | |