summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 86352b4d6d0ae93b47bcc1541e6e3d0d2d762de0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM alpine:latest

RUN apk add --no-cache \
    caddy \
    cgit \
    git \
    fcgiwrap \
    spawn-fcgi \
    gettext \
    openssl \
    openssh-server

COPY cgitrc.template /etc/cgitrc.template
COPY Caddyfile /etc/caddy/Caddyfile
COPY sshd_config /etc/ssh/sshd_config
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

# 80 required for Let's Encrypt HTTP-01 challenge, 443 for HTTPS, 22 for git SSH
EXPOSE 80 443 22

ENTRYPOINT ["/entrypoint.sh"]