c / Dockerfile
dayuadg's picture
Update Dockerfile
99bd494 verified
Raw
History Blame Contribute Delete
642 Bytes
# Gunakan Ubuntu 22.04
FROM ubuntu:22.04
# Gunakan akses ROOT langsung agar tidak ada masalah izin
USER root
WORKDIR /root
# Install paket dasar & update
RUN apt-get update && apt-get install -y \
bash \
curl \
wget \
git \
htop \
neofetch \
nano \
sudo \
&& rm -rf /var/lib/apt/lists/*
# Download ttyd versi 1.7.7 (Lebih baru & stabil dari 1.7.3)
RUN wget -O /usr/bin/ttyd https://github.com/tsl0922/ttyd/releases/download/1.7.7/ttyd.x86_64 && \
chmod +x /usr/bin/ttyd
# Buka Port
EXPOSE 7860
# Jalankan terminal dengan opsi 'writable' penuh sebagai root
CMD ["ttyd", "-p", "7860", "-W", "bash"]