dockerfiles

[ACTIVE] various dockerfiles for projects that don't have them
git clone git://git.figbert.com/dockerfiles.git
Log | Files | Refs | README | LICENSE

commit b5423d16bf3bff775eeb2f2a40e6b148fa4d2933
parent de595656809bd2268fed2b78a39e7c098a684f75
Author: FIGBERT <figbert@figbert.com>
Date:   Thu, 19 May 2022 10:21:21 -0700

Add stagit

Diffstat:
Astagit | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/stagit b/stagit @@ -0,0 +1,15 @@ +FROM nginx:alpine +RUN apk add --no-cache -X https://dl-cdn.alpinelinux.org/alpine/edge/testing stagit +ENTRYPOINT stagit-index /git/*/ > /usr/share/nginx/html/index.html && \ + for dir in /git/*/; do \ + r=$(basename "${dir}"); \ + d=$(basename "${dir}" ".git"); \ + echo "${d}"; \ + mkdir -p "/usr/share/nginx/html/${d}"; \ + cd "/usr/share/nginx/html/${d}" || continue; \ + stagit -u "${GIT_BASE_URL}/$d/" "/git/${r}"; \ + ln -sf log.html index.html; \ + ln -sf ../style.css style.css; \ + ln -sf ../logo.png logo.png; \ + ln -sf ../favicon.png favicon.png; \ + done && /docker-entrypoint.sh nginx -g 'daemon off;'