summaryrefslogtreecommitdiffstatshomepage
path: root/test/integration/docker/git_server/Dockerfile
blob: 2d0fbe471ad8ea4c4c57929dff04db1c76f10ad9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM alpine:3.24

RUN apk add -q --no-cache bash git openssh-client-common openssh-server tini && \
    echo 'root:root' | chpasswd && \
    sed -ri 's/^#?PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config

USER root
WORKDIR /root

COPY ["git_server/setup.sh", "./"]
RUN ./setup.sh

COPY ["git_server/entrypoint.sh", "/"]
ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"]

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