duon / Dockerfile
Duongkum999's picture
Create Dockerfile
b4589b1 verified
raw
history blame contribute delete
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"]