anchor.diff:          armhf) packerArch='arm' ;; \
           x86) packerArch='386' ;; \
           x86_64) packerArch='amd64' ;; \
  -        *) echo >&2 "error: unsupported architecture: ${apkArch} (see ${HASHICORP_RELEASES}/packer/${VERSION}/)" && exit 1 ;; \
  +        *) echo >&2 "error: unsupported architecture: ${apkArch} (see ${HASHICORP_RELEASES}/packer/${PRODUCT_VERSION}/)" && exit 1 ;; \
       esac && \
  -    wget ${HASHICORP_RELEASES}/packer/${VERSION}/packer_${VERSION}_linux_${packerArch}.zip && \
  -    wget ${HASHICORP_RELEASES}/packer/${VERSION}/packer_${VERSION}_SHA256SUMS && \
  -    wget ${HASHICORP_RELEASES}/packer/${VERSION}/packer_${VERSION}_SHA256SUMS.sig && \
  -    gpg --batch --verify packer_${VERSION}_SHA256SUMS.sig packer_${VERSION}_SHA256SUMS && \
  -    grep packer_${VERSION}_linux_${packerArch}.zip packer_${VERSION}_SHA256SUMS | sha256sum -c && \
  -    unzip -d /tmp/build packer_${VERSION}_linux_${packerArch}.zip && \
  +    wget ${HASHICORP_RELEASES}/packer/${PRODUCT_VERSION}/packer_${PRODUCT_VERSION}_linux_${packerArch}.zip && \
  +    wget ${HASHICORP_RELEASES}/packer/${PRODUCT_VERSION}/packer_${PRODUCT_VERSION}_SHA256SUMS && \
  +    wget ${HASHICORP_RELEASES}/packer/${PRODUCT_VERSION}/packer_${PRODUCT_VERSION}_SHA256SUMS.sig && \
  +    gpg --batch --verify packer_${PRODUCT_VERSION}_SHA256SUMS.sig packer_${PRODUCT_VERSION}_SHA256SUMS && \
  +    grep packer_${PRODUCT_VERSION}_linux_${packerArch}.zip packer_${PRODUCT_VERSION}_SHA256SUMS | sha256sum -c && \
  +    unzip -d /tmp/build packer_${PRODUCT_VERSION}_linux_${packerArch}.zip && \
       cp /tmp/build/packer /bin/packer && \
       cd /tmp && \
       rm -rf /tmp/build && \
  
positive.code: FROM docker.mirror.hashicorp.services/alpine:latest as official
  
  # This is the release of Packer to pull in.
  ARG VERSION
  
  LABEL name="Packer" \
        maintainer="HashiCorp Packer Team <packer@hashicorp.com>" \
        vendor="HashiCorp" \
        version=$VERSION \
        release=$VERSION \
        summary="Packer is a tool for creating identical machine images for multiple platforms from a single source configuration." \
        description="Packer is a tool for creating identical machine images for multiple platforms from a single source configuration. Please submit issues to https://github.com/hashicorp/packer/issues"
  
  
negative.code: # This image is published to DockerHub under the `light`, `light-$VERSION`, and `latest` tags.
  FROM docker.mirror.hashicorp.services/alpine:latest as release-light
  
  ARG PRODUCT_VERSION
  ARG BIN_NAME
  
  # TARGETARCH and TARGETOS are set automatically when --platform is provided.
  