feat: add initial Dockerfile, SSH server apps, and media upload web component

Add DockerfileDrive for containerized deployment with Python 3.12.8 Alpine base, including SSH host key and pip setup. Implement multiple SSH server variants: app.py with SFTP file transfer support on port 2225, app2.py with custom bash shell spawning, app3.py with terminal resize handling, app4.py with bcrypt password authentication, and app5.py with chat client infrastructure. Include TileGridElement and UploadButton custom web components in media-upload.js for gallery-style image display with hover effects.
This commit is contained in:
2025-01-31 11:06:42 +00:00
parent e290a9f5cb
commit 6371bb1fa5
9 changed files with 604 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM python:3.12.8-alpine3.21
WORKDIR /code
RUN apk add --no-cache gcc musl-dev linux-headers git openssh
#WKHTMLTOPDFNEEDS
COPY setup.cfg setup.cfg
COPY pyproject.toml pyproject.toml
COPY src src
COpy ssh_host_key ssh_host_key
RUN pip install --upgrade pip
RUN pip install -e .
EXPOSE 2225
#CMD ["python","-m","snekssh.app"]
#CMD ["gunicorn", "-w", "10", "-k", "aiohttp.worker.GunicornWebWorker", "snek.gunicorn:app","--bind","0.0.0.0:8081"]