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"]