#!/bin/bash set -e . functions.sh cd "$(cd "${0%/*}" && pwd -P)"; versions=( "$@" ) if [ ${#versions[@]} -eq 0 ]; then versions=( */ ) fi versions=( "${versions[@]%/}" ) # Global variables # Get architecure and use this as target architecture for docker image # See details in function.sh # TODO: Should be able to specify target architecture manually arch=$(get_arch) yarnVersion="$(curl -sSL --compressed https://yarnpkg.com/latest-version)" function update_node_version { local template=$1 shift local dockerfile=$1 shift local variant= if [[ $# -eq 1 ]]; then variant=$1 shift fi fullVersion="$(curl -sSL --compressed 'https://nodejs.org/dist' | grep '