summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorYour Name <you@example.com>2025-12-29 18:28:13 +0800
committerYour Name <you@example.com>2025-12-29 18:28:13 +0800
commit214f4bab8b852e9b66d909bc22e5f9119da7dfb5 (patch)
treeee970b0f1738e5e08afe24247305be2defb27735 /Dockerfile
initial commit
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..35208e9
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,20 @@
1FROM alpine:latest
2
3RUN apk add --no-cache \
4 caddy \
5 cgit \
6 git \
7 fcgiwrap \
8 spawn-fcgi \
9 gettext \
10 openssl
11
12COPY cgitrc.template /etc/cgitrc.template
13COPY Caddyfile /etc/caddy/Caddyfile
14COPY entrypoint.sh /entrypoint.sh
15RUN chmod +x /entrypoint.sh
16
17# 80 required for Let's Encrypt HTTP-01 challenge, 443 for HTTPS
18EXPOSE 80 443
19
20ENTRYPOINT ["/entrypoint.sh"]