commit de0e8fef66fa224bdb301ff0a3dbb2faa5b509db parent 5d651cc461497823757f126dcdff5213598a5387 Author: Andreas Gruhler <agruhl@gmx.ch> Date: Wed, 27 Aug 2025 15:50:37 +0200 feat(docker): add webssh Diffstat:
A | docker/docker-webssh/Dockerfile | | | 24 | ++++++++++++++++++++++++ |
1 file changed, 24 insertions(+), 0 deletions(-)
diff --git a/docker/docker-webssh/Dockerfile b/docker/docker-webssh/Dockerfile @@ -0,0 +1,24 @@ +# https://github.com/huashengdun/webssh/blob/master/Dockerfile +FROM python:3-alpine + +ARG WEBSSH_VERSION="1.6.3" +ENV WEBSSH_VERSION="${WEBSSH_VERSION}" + +RUN apk update && apk add --no-cache libc-dev libffi-dev gcc curl + +RUN mkdir -p /app +WORKDIR /app + +RUN curl -LO "https://github.com/huashengdun/webssh/archive/refs/tags/v${WEBSSH_VERSION}.tar.gz" +RUN tar -xf "v${WEBSSH_VERSION}.tar.gz" +WORKDIR "/app/webssh-${WEBSSH_VERSION}" + +RUN pip install -r requirements.txt --no-cache-dir && \ + apk del gcc libc-dev libffi-dev && \ + addgroup webssh && \ + adduser -Ss /bin/false -g webssh webssh && \ + chown -R webssh:webssh /app + +EXPOSE 8888/tcp +USER webssh +CMD ["python", "run.py"]