summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 98316aeeb61d9ed326c219c9fbe6de0b5fc6b9a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM alpine
RUN apk add --no-cache openssh-server fish git sudo

# Modified ssh conf with disabled root login and no password authentication
COPY ssh.conf /etc/ssh/sshd_config.d/
COPY sudo-git /etc/sudoers.d/

# required for permission check
COPY run /usr/local/bin/
RUN chmod +x /usr/local/bin/run

# required for starting
COPY init /usr/local/bin/
RUN chmod +x /usr/local/bin/init
ENTRYPOINT ["/usr/local/bin/init"]