rozancius-ssh (latest)

Published 2024-10-08 17:46:26 +03:00 by tomas

Installation

docker pull git.balsys.eu.org/tomas/rozancius-ssh:latest
sha256:1f69a4053168a861b7a21e2bab0d7d454d3a5e7302b64a1d4ed8a155a537c9c9

Image Layers

ARG RELEASE
ARG LAUNCHPAD_BUILD_ARCH
LABEL org.opencontainers.image.ref.name=ubuntu
LABEL org.opencontainers.image.version=24.04
ADD file:6f881131af38dde06e3705e8376701ae22ce479e4824821a9580d4e0e0bcf0ac in /
CMD ["/bin/bash"]
ENV SSH_PORT=22
/bin/sh -c export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install curl -y && curl -sL https://deb.nodesource.com/setup_20.x | bash && apt-get install openssh-server tmux curl vim git php nodejs -y && sed -i 's/UsePAM yes/UsePAM no/' /etc/ssh/sshd_config && useradd --create-home --uid 60 --gid 60 nginx --shell /bin/bash && echo "nginx:$(tr -dc A-Za-z0-9 </dev/urandom | head -c 13)" | chpasswd && mkdir /home/nginx/.ssh /run/sshd && touch /home/nginx/.ssh/authorized_keys && chown -R nginx: /home/nginx/.ssh
CMD ["bash", "-c", "sed -i 's/#Port 22/Port '$SSH_PORT'/' /etc/ssh/sshd_config && echo $PUBLIC_KEY > /home/nginx/.ssh/authorized_keys && echo $ACCESS_TOKEN > /home/nginx/.git-credentials && exec /usr/sbin/sshd -D"]

Labels

Key Value
io.buildah.version 1.33.7
org.opencontainers.image.ref.name ubuntu
org.opencontainers.image.version 24.04
Details
Container
2024-10-08 17:46:26 +03:00
5
OCI / Docker
linux/amd64
203 MiB
Versions (1) View all
latest 2024-10-08