FROM ubuntu:22.04 # Timezone set karo (warna stuck ho jaayega) ENV DEBIAN_FRONTEND=noninteractive ENV TZ=Asia/Kolkata # Basic tools + ttyd RUN apt update && apt install -y \ curl \ wget \ git \ vim \ nano \ htop \ python3 \ python3-pip \ nodejs \ npm \ net-tools \ iputils-ping \ dnsutils \ openssh-client \ gcc \ make \ sudo \ && rm -rf /var/lib/apt/lists/* # ttyd install (latest binary) RUN wget -O /usr/local/bin/ttyd https://github.com/tsl0922/ttyd/releases/latest/download/ttyd.x86_64 \ && chmod +x /usr/local/bin/ttyd # Non-root user for students (optional) # RUN useradd -m student && echo "student:password" | chpasswd && usermod -aG sudo student EXPOSE 7681 # Start ttyd with bash (enable write, disable SSL for simplicity) CMD ["ttyd", "--port", "7681", "--writable", "bash"]