lmr

alpine-gitserver (sha256:f02eeea7b6937234b9746b642c68832f4bc41c2a6be6b55125dbd46bc9c634a6)

Published 2025-03-23 14:18:21 +00:00 by n0rad

Installation

docker pull gitea.lmr.io/lmr/alpine-gitserver@sha256:f02eeea7b6937234b9746b642c68832f4bc41c2a6be6b55125dbd46bc9c634a6
sha256:f02eeea7b6937234b9746b642c68832f4bc41c2a6be6b55125dbd46bc9c634a6

Image Layers

ADD alpine-minirootfs-3.21.2-aarch64.tar.gz / # buildkit
CMD ["/bin/sh"]
RUN /bin/sh -c apk add --no-cache openssh git # buildkit
RUN /bin/sh -c adduser -h /home/git -s /usr/bin/git-shell -u 619 -D git && mkdir -p /home/git/.ssh && chmod 700 /home/git/.ssh && touch /home/git/.ssh/authorized_keys && chmod 600 /home/git/.ssh/authorized_keys && chown -R git: /home/git/.ssh && passwd -u git # buildkit
RUN /bin/sh -c echo "PasswordAuthentication no" >> /etc/ssh/sshd_config && echo "PubkeyAuthentication yes" >> /etc/ssh/sshd_config # buildkit
EXPOSE map[22/tcp:{}]
CMD ["/bin/sh" "-c" "[ -f ssh_host_ecdsa_key ] || ssh-keygen -f /etc/ssh/ssh_host_ecdsa_key -N '' -t ecdsa -b 521; exec /usr/sbin/sshd -De"]
Details
Container
2025-03-23 14:18:21 +00:00
0
OCI / Docker
linux/arm64
12 MiB
Versions (2) View all
latest 2025-03-23