forked from retoor/snek
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.
17 lines
448 B
Plaintext
17 lines
448 B
Plaintext
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"]
|