+ARG SAPMACHINE_VERSION=11.0.17
+
+RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
+ && case "${dpkgArch##*-}" in \
+ amd64) ARCH='amd64';; \
+ *) echo "unsupported architecture"; exit 1 ;; \
+ esac \
+ && set -ex \
+ && apt-get update \
+ && apt-get install -y ca-certificates gnupg dirmngr --no-install-recommends \
+ && rm -rf /var/lib/apt/lists/* \
+ && for key in \
+ CACB9FE09150307D1D22D82962754C3B3ABCFE23 \
+ ; do \
+ gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || \
+ gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keyserver.ubuntu.com --recv-keys "$key" ; \
+ done \
+ && chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg \
+ && echo "deb http://dist.sapmachine.io/debian/${ARCH}/ ./" | tee /etc/apt/sources.list.d/sapmachine.list \
+ && apt-get update \
+ && apt-get install -y sapmachine-$(echo ${SAPMACHINE_VERSION} | cut -d. -f1)-jdk=${SAPMACHINE_VERSION} --no-install-recommends \
+ && rm -rf /var/lib/apt/lists/* \
+ && apt-get remove --purge --autoremove -y ca-certificates gnupg dirmngr \
+ # smoke test
+ && java --version
+