Spaces:
Paused
Paused
Download Dockerfile from dunbot/duon: direct link, hf CLI and curl.
- Browser
- Download file 583 Bytes
-
https://huggingface.co/spaces/dunbot/duon/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/dunbot/duon/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/dunbot/duon/resolve/main/Dockerfile
583 Bytes
| # Sử dụng Ubuntu làm base image | |
| FROM ubuntu:20.04 | |
| # Cài đặt các gói cần thiết | |
| RUN apt-get update && \ | |
| apt-get install -y wget curl git vim && \ | |
| apt-get install -y build-essential | |
| # Cài đặt Go | |
| RUN wget https://golang.org/dl/go1.16.5.linux-amd64.tar.gz && \ | |
| tar -C /usr/local -xzf go1.16.5.linux-amd64.tar.gz && \ | |
| export PATH=$PATH:/usr/local/go/bin | |
| # Cài đặt gotty | |
| RUN go get github.com/yudai/gotty | |
| # Tạo một thư mục làm việc | |
| WORKDIR /root | |
| # Chạy gotty khi container khởi động | |
| CMD ["/root/go/bin/gotty", "-w", "/bin/bash"] | |