This repository has been archived on 2023-10-18. You can view files and clone it, but cannot push or open issues or pull requests.
git-chglog/Dockerfile

31 lines
1.3 KiB
Docker
Raw Permalink Normal View History

FROM thegeeklab/alpine:latest@sha256:589a966ae6e145ac678828b4ab91d77f3b962af3b3b3ea9c0f4ce297b3712f83
2021-02-10 20:22:23 +00:00
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.title="git-chglog"
LABEL org.opencontainers.image.url="https://gitea.rknet.org/docker/git-chglog"
LABEL org.opencontainers.image.source="https://gitea.rknet.org/docker/git-chglog"
LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/docker/git-chglog"
ARG BUILD_VERSION
# renovate: datasource=github-releases depName=git-chglog/git-chglog
ENV CHGLOG_VERSION="${BUILD_VERSION:-v0.15.4}"
2021-02-10 20:22:23 +00:00
COPY overlay/ /
2021-02-10 20:44:39 +00:00
RUN apk add --update --no-cache --virtual .build-deps tar curl && \
2021-02-10 20:22:23 +00:00
apk add --update --no-cache git && \
2021-02-10 20:50:49 +00:00
echo "Installing git-chglog version '${CHGLOG_VERSION##v}' ..." && \
2022-06-21 13:15:17 +00:00
curl -SsfL "https://github.com/git-chglog/git-chglog/releases/download/${CHGLOG_VERSION}/git-chglog_${CHGLOG_VERSION##v}_linux_amd64.tar.gz" | \
2021-02-10 20:50:49 +00:00
tar xz -C /usr/local/bin git-chglog && \
2021-02-10 20:44:39 +00:00
chmod 755 /usr/local/bin/git-chglog && \
2021-02-10 20:22:23 +00:00
apk del .build-deps && \
rm -rf /var/cache/apk/* && \
rm -rf /tmp/* && \
rm -rf /root/.cache/
USER root
CMD []
ENTRYPOINT ["/usr/local/bin/git-chglog"]