diff options
Diffstat (limited to 'Containerfile')
| -rw-r--r-- | Containerfile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Containerfile b/Containerfile index 0e46cdb..e15c99c 100644 --- a/Containerfile +++ b/Containerfile @@ -1,7 +1,10 @@ ARG DEBIAN_VERSION=trixie +ARG CGIT_VERSION=1.3.1 +ARG IMAGE_REVISION=1 FROM debian:${DEBIAN_VERSION}-slim AS builder +ARG CGIT_VERSION=1.3.1 ARG CGIT_COMMIT=044821677c774cd24f25f1818ea51d09cc64b006 RUN apt-get update \ @@ -27,10 +30,12 @@ RUN git init cgit \ WORKDIR /src/cgit RUN make -j"$(nproc)" \ + CGIT_VERSION="${CGIT_VERSION}" \ NO_LUA=1 \ NO_GETTEXT=YesPlease RUN make install \ + CGIT_VERSION="${CGIT_VERSION}" \ NO_LUA=1 \ NO_GETTEXT=YesPlease \ DESTDIR=/out \ @@ -40,15 +45,24 @@ RUN make install \ FROM debian:${DEBIAN_VERSION}-slim +ARG CGIT_VERSION=1.3.1 +ARG IMAGE_REVISION=1 + +LABEL org.opencontainers.image.title="cgit" \ + org.opencontainers.image.version="${CGIT_VERSION}-r${IMAGE_REVISION}" + RUN apt-get update \ && apt-get install --no-install-recommends -y \ busybox-static \ + python3-pygments \ tini \ zlib1g \ && rm -rf /var/lib/apt/lists/* COPY --from=builder /out/www /www +COPY --chmod=0555 syntax-highlighting.py /usr/libexec/cgit/syntax-highlighting.py + RUN mkdir -p \ /srv/git \ /var/cache/cgit |
