~dricottone/container-images

ref: a7203db0a58e4c44171294e94198b73681f6312d container-images/srht-git-ssh/Dockerfile -rw-r--r-- 391 bytes
a7203db0Dominic Ricottone Continuation of Postfix redesign 1 year, 4 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"]