socktop-webterm (sha256:cedbaae31357aefba08c42c35b98a4064b79ddee40099af330a1ef346c8f8e2c)
Published 2025-11-30 11:53:46 +00:00 by jason
Installation
docker pull gt.wittyoneoff.com/jason/socktop-webterm@sha256:cedbaae31357aefba08c42c35b98a4064b79ddee40099af330a1ef346c8f8e2csha256:cedbaae31357aefba08c42c35b98a4064b79ddee40099af330a1ef346c8f8e2cImage Layers
| # debian.sh --arch 'arm64' out/ 'trixie' '@1763337600' |
| ENV DEBIAN_FRONTEND=noninteractive |
| ENV TERM=xterm-256color |
| RUN /bin/sh -c apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends libssl3 ca-certificates curl gnupg2 bash procps curl && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c curl -fsSL https://jasonwitty.github.io/socktop/KEY.gpg | gpg --dearmor -o /usr/share/keyrings/socktop-archive-keyring.gpg && echo "deb [signed-by=/usr/share/keyrings/socktop-archive-keyring.gpg] https://jasonwitty.github.io/socktop stable main" > /etc/apt/sources.list.d/socktop.list && apt-get update && apt-get install -y --no-install-recommends socktop socktop-agent && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c id -u socktop &>/dev/null || useradd -m -s /bin/bash socktop && mkdir -p /home/socktop/.config/socktop && chown -R socktop:socktop /home/socktop # buildkit |
| WORKDIR /app |
| COPY /build/target/release/webterm-server /usr/local/bin/webterm-server # buildkit |
| COPY /build/templates ./templates # buildkit |
| COPY /build/static ./static # buildkit |
| COPY /build/node_modules ./node_modules # buildkit |
| COPY docker/entrypoint.sh /entrypoint.sh # buildkit |
| COPY docker/init-config.sh /init-config.sh # buildkit |
| COPY docker/restricted-shell.sh /usr/local/bin/restricted-shell.sh # buildkit |
| RUN /bin/sh -c chmod +x /entrypoint.sh /init-config.sh /usr/local/bin/restricted-shell.sh # buildkit |
| EXPOSE [3001/tcp 8082/tcp] |
| HEALTHCHECK &{["CMD-SHELL" "curl -f http://localhost:8082/ || exit 1"] "30s" "3s" "5s" "0s" '\x03'} |
| ENTRYPOINT ["/init-config.sh"] |
| CMD ["/entrypoint.sh" "webterm-server" "--host" "0.0.0.0" "--port" "8082" "--command" "/usr/local/bin/restricted-shell.sh"] |