summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorYour Name <you@example.com>2026-02-18 15:12:32 +0800
committerYour Name <you@example.com>2026-02-18 15:12:32 +0800
commitc3a377a265d2ca92b8823be281fa0e487d30692b (patch)
tree1d5b4213c65635ffdd82921b633eaaf5bebd2e60 /Dockerfile
parentb0572c958427ae6ad75109752e9741aab31ad65a (diff)
switch to rocky linux 10, add --init for zombie reaping, fix NAT setup
- base image alpine -> rockylinux:10 (cgit/fcgiwrap from EPEL) - drop spawn-fcgi, use fcgiwrap -s directly - add --init to reap zombie sshd-auth processes (PID exhaustion fix) - replace ip addr/route networking with nft DNAT/SNAT/FORWARD rules - add FORWARD accept rule that was missing for inbound DNAT traffic
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index 86352b4..65ead86 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,14 +1,16 @@
1FROM alpine:latest 1FROM rockylinux:10
2 2
3RUN apk add --no-cache \ 3RUN dnf install -y epel-release && \
4 dnf copr enable -y @caddy/caddy && \
5 dnf install -y \
4 caddy \ 6 caddy \
5 cgit \ 7 cgit \
6 git \ 8 git \
7 fcgiwrap \ 9 fcgiwrap \
8 spawn-fcgi \
9 gettext \ 10 gettext \
10 openssl \ 11 openssl \
11 openssh-server 12 openssh-server \
13 && dnf clean all
12 14
13COPY cgitrc.template /etc/cgitrc.template 15COPY cgitrc.template /etc/cgitrc.template
14COPY Caddyfile /etc/caddy/Caddyfile 16COPY Caddyfile /etc/caddy/Caddyfile