diff options
Diffstat (limited to '')
| -rw-r--r-- | cgit/Dockerfile | 41 |
1 files changed, 16 insertions, 25 deletions
diff --git a/cgit/Dockerfile b/cgit/Dockerfile index 86b3005..2988d2e 100644 --- a/cgit/Dockerfile +++ b/cgit/Dockerfile @@ -1,22 +1,9 @@ -FROM nginx:1.28.1-alpine3.23 - -ARG VERSION=0.0.0 -ENV VERSION=${VERSION} +FROM nginx:1.31.2-alpine3.23 RUN addgroup -S git -g 1001 && adduser -S -G git -u 1001 -D git -# CGit -ARG CGIT_VERSION=1.2.3-r5 -ENV CGIT_VERSION=${CGIT_VERSION} - -LABEL version="${VERSION}" \ - description="The hyperfast web frontend for Git repositories on top of Alpine and Nginx." \ - maintainer="Jose Quintana <joseluisq.net>" - -RUN set -eux \ - && apk add --no-cache \ +RUN apk add --no-cache \ ca-certificates \ - cgit=${CGIT_VERSION} \ fcgiwrap \ git \ lua5.3-libs \ @@ -27,12 +14,24 @@ RUN set -eux \ python3 \ spawn-fcgi \ tzdata \ + && true + +# Cgit build deps +RUN apk add --no-cache \ + make \ + gcc \ + musl-dev \ xz \ zlib \ - && rm -rf /var/cache/apk/* \ - && rm -rf /tmp/* \ + zlib-dev \ + openssl-dev \ && true +COPY install-cgit.sh / +RUN /install-cgit.sh "1.3.1" + +RUN rm -rf /var/cache/apk/* && rm -rf /tmp/* + COPY docker-entrypoint.sh / RUN chmod +x /docker-entrypoint.sh COPY nginx/ /etc/nginx @@ -57,11 +56,3 @@ EXPOSE 80 STOPSIGNAL SIGQUIT CMD [ "nginx", "-g", "daemon off;" ] - -# Metadata -LABEL org.opencontainers.image.vendor="Jose Quintana" \ - org.opencontainers.image.url="https://github.com/joseluisq/alpine-cgit" \ - org.opencontainers.image.title="cgit" \ - org.opencontainers.image.description="The hyperfast web frontend for Git repositories on top of Alpine and Nginx." \ - org.opencontainers.image.version="${VERSION}" \ - org.opencontainers.image.documentation="https://github.com/joseluisq/alpine-cgit" |
