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

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

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

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

ENTRYPOINT ["/entrypoint.sh"]