pi2-shelock-ex01 (latest)
Published 2025-01-14 22:25:23 +01:00 by daniel
Installation
docker pull git.pi2.dev/daniel/pi2-shelock-ex01:latest
sha256:476cd252bbf3fba2c1cadf63e10fba27aa96a26297224592246db924e97b0b92
Image Layers
# debian.sh --arch 'amd64' out/ 'bookworm' '@1736726400' |
RUN /bin/sh -c apt-get update && apt-get install -y python3-flask openssh-server # buildkit |
RUN /bin/sh -c useradd -ms /bin/bash hackme -p '$y$j9T$laZyqJOnWnwzzw6yQTjF3/$wxAiJhouI/PIIdP1H4BFkSZknNEdlmzsMg0SYbMCukA' # buildkit |
RUN /bin/sh -c mkdir /app # buildkit |
COPY ./app.py /app/app.py # buildkit |
COPY ./templates /app/templates # buildkit |
WORKDIR /app |
EXPOSE map[5000/tcp:{}] |
EXPOSE map[22/tcp:{}] |
CMD ["/bin/sh" "-c" "service ssh start && python3 /app/app.py"] |