| # debian.sh --arch 'amd64' out/ 'bookworm' '@1789689600' |
| ENV DEBIAN_FRONTEND=noninteractive |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends bash login passwd sudo curl wget git vim nano less htop procps psmisc lsof iproute2 iputils-ping dnsutils net-tools traceroute mtr-tiny netcat-openbsd openssh-client openssl jq rsync unzip zip tree ca-certificates python3 python3-pip tcpdump nmap && rm -rf /var/lib/apt/lists/* # buildkit |
| ARG TTYD_VERSION=1.7.7 |
| RUN |1 TTYD_VERSION=1.7.7 /bin/sh -c curl -L "https://github.com/tsl0922/ttyd/releases/download/${TTYD_VERSION}/ttyd.x86_64" -o /usr/local/bin/ttyd && chmod +x /usr/local/bin/ttyd # buildkit |
| WORKDIR /root |
| CMD ["ttyd" "--writable" "--port" "7681" "login"] |