30 lines
1.2 KiB
Docker
30 lines
1.2 KiB
Docker
FROM thegeeklab/alpine:latest@sha256:df93417b4a0fe5c5cd30292c1506361d231421d6a8f454091a6ef66c47d342db
|
|
|
|
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}"
|
|
|
|
COPY overlay/ /
|
|
|
|
RUN apk add --update --no-cache --virtual .build-deps tar && \
|
|
apk add --update --no-cache curl gnupg coreutils git && \
|
|
echo "Installing codecov version '${CODECOV_VERSION##v}' ..." && \
|
|
curl -SsfL -o /usr/local/bin/codecov "https://github.com/codecov/uploader/releases/download/${CODECOV_VERSION}/codecov-alpine" && \
|
|
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"]
|