ARG updatecli_version
# Following FROM instruction should be ignore as we don't have enough information to guess the next one
FROM updatecli/updatecli:${updatecli_version}

FROM updatecli/updatecli:v0.25.0@sha256:1fafb0905264413501df60d90a92ca32df8a2011cbfb4876ddff5ceb20c8f165

## As per https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#user
# hadolint ignore=DL3002
USER root
WORKDIR /root

## The latest version of these "generic" package is always required
# hadolint ignore=DL3008
RUN apt-get update && \
  apt-get install --yes --no-install-recommends \
    curl \
    tar \
    unzip \
    wget \
  && apt-get clean \
  && rm -rf /var/lib/apt/lists/*

COPY github-actions-entrypoint.bash /usr/local/bin/github-actions-entrypoint.bash

ENTRYPOINT ["/usr/local/bin/github-actions-entrypoint.bash"]