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

# default uid for git user who has access to all repos
ENV GIT_UID=1000

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

# copy scrips
COPY src/env /usr/local/bin/
COPY src/init /usr/local/bin/
COPY src/run /usr/local/bin/
RUN chmod 755 /usr/local/bin/env
RUN chmod 755 /usr/local/bin/init
RUN chmod 755 /usr/local/bin/run

ENTRYPOINT ["/usr/local/bin/init"]