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.
codecov/Dockerfile

30 lines
1.2 KiB
Docker
Raw Normal View History

FROM thegeeklab/alpine:latest@sha256:f7dcce8a3b0fe2c2cc5ab05e255caa8413882fb470fc9742e090b441a355c27c
2023-04-17 10:07:52 +00:00
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.title="codecov"
LABEL org.opencontainers.image.url="https://gitea.rknet.org/docker/codecov"
LABEL org.opencontainers.image.source="https://gitea.rknet.org/docker/codecov"
LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/docker/codecov"
ARG BUILD_VERSION
# renovate: datasource=github-releases depName=codecov/uploader
ENV CODECOV_VERSION="${BUILD_VERSION:-v0.6.2}"
2023-04-17 10:07:52 +00:00
COPY overlay/ /
RUN apk add --update --no-cache --virtual .build-deps tar && \
2023-04-17 13:21:57 +00:00
apk add --update --no-cache curl gnupg coreutils git && \
2023-04-17 10:07:52 +00:00
echo "Installing codecov version '${CODECOV_VERSION##v}' ..." && \
2023-04-17 12:12:30 +00:00
curl -SsfL -o /usr/local/bin/codecov "https://github.com/codecov/uploader/releases/download/${CODECOV_VERSION}/codecov-alpine" && \
2023-04-17 10:07:52 +00:00
chmod 755 /usr/local/bin/codecov && \
apk del .build-deps && \
rm -rf /var/cache/apk/* && \
rm -rf /tmp/* && \
rm -rf /root/.cache/
USER root
CMD []
ENTRYPOINT ["/usr/local/bin/codecov"]