# syntax=docker/dockerfile:1.4 ARG FROM FROM ${FROM} FROM ${FROM} AS cloudarchive-generator RUN < /etc/apt/sources.list.d/cloudarchive.list else echo "${RELEASE} is not supported on $(lsb_release -sc)" exit 1 fi elif [ "$(lsb_release -sc)" = "jammy" ]; then if [[ "${RELEASE}" = "yoga" ]]; then # NOTE(mnaser): Yoga shipped with 22.04, so no need to add an extra repository. echo "" > /etc/apt/sources.list.d/cloudarchive.list elif [[ "${RELEASE}" = "zed" || "${RELEASE}" = "antelope" || "${RELEASE}" = "bobcat" ]]; then echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu $(lsb_release -sc)-updates/${RELEASE} main" > /etc/apt/sources.list.d/cloudarchive.list else echo "${RELEASE} is not supported on $(lsb_release -sc)" exit 1 fi else echo "Unable to detect correct Ubuntu Cloud Archive repository for $(lsb_release -sc)" exit 1 fi EOF FROM ${FROM} AS runtime COPY --from=cloudarchive-generator --link /etc/apt/sources.list.d/cloudarchive.list /etc/apt/sources.list.d/cloudarchive.list COPY ubuntu-keyring-2012-cloud-archive.gpg /etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cloud-archive.gpg RUN <