~dricottone/container-images

ref: bea5baf47cb3d3cbac3ddffe32e35d334650a101 container-images/srht-git-ssh/Dockerfile -rw-r--r-- 391 bytes
bea5baf4Dominic Ricottone sr.ht 1 year, 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM registry.intra.dominic-ricottone.com/srht-git-core:latest

USER root

RUN apk add --no-cache openssh

COPY ssh* /etc/ssh/
RUN chmod 600 /etc/ssh/*_key
RUN chmod 644 /etc/ssh/*_key.pub

RUN touch /var/log/gitsrht-shell
RUN chmod 666 /var/log/gitsrht-shell

RUN touch /var/log/gitsrht-update-hook
RUN chmod 666 /var/log/gitsrht-update-hook

EXPOSE 22

CMD ["/usr/sbin/sshd", "-D", "-e"]