diff --git a/Containerfile b/Containerfile index 9d0c335..4c710e0 100644 --- a/Containerfile +++ b/Containerfile @@ -4,12 +4,10 @@ ENV CGO_ENABLED=0 ENV GOOS=linux ENV GOARCH=amd64 -ARG JQ_VERSION=1.7 - # hadolint ignore=DL3018 -RUN apk update && apk add --no-cache bash git make binutils wget \ - && wget --progress=dot:giga "https://github.com/jqlang/jq/releases/download/jq-${JQ_VERSION}/jq-${GOOS}-${GOARCH}" -O /usr/bin/jq \ - && chmod +x /usr/bin/jq +RUN apk update \ + && apk add --no-cache \ + make binutils WORKDIR $GOPATH/src/github.com/wiremind/ovh-exporter @@ -17,9 +15,10 @@ COPY . . RUN make ovh-exporter && mv ovh-exporter /usr/bin/ - FROM busybox:stable AS runtime COPY --from=build /usr/bin/ovh-exporter /usr/bin/ovh-exporter ENTRYPOINT ["/usr/bin/ovh-exporter"] + +CMD ["serve"]