socktop-webterm (sha256:f44fa2f1883fc430cdf66fac1b417df5fbaa90399f8f34b5aa1f024e0cd0768f)

Published 2025-11-30 12:27:57 +00:00 by jason

Installation

docker pull gt.wittyoneoff.com/jason/socktop-webterm@sha256:f44fa2f1883fc430cdf66fac1b417df5fbaa90399f8f34b5aa1f024e0cd0768f
sha256:f44fa2f1883fc430cdf66fac1b417df5fbaa90399f8f34b5aa1f024e0cd0768f

Image 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'}
RUN /bin/sh -c echo '#!/bin/bash\n if [ "$(id -u)" -eq 0 ]; then\n exec /init-config.sh "$@"\n else\n exec /entrypoint.sh "$@"\n fi' > /docker-entrypoint.sh && chmod +x /docker-entrypoint.sh # buildkit
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["webterm-server" "--host" "0.0.0.0" "--port" "8082" "--command" "/usr/local/bin/restricted-shell.sh"]
Details
Container
2025-11-30 12:27:57 +00:00
1
OCI / Docker
linux/arm64
54 MiB
Versions (11) View all
buildcache 2025-12-07
latest 2025-12-07
0.3.6 2025-12-07
0.3.5 2025-11-30
0.3.4 2025-11-30