From 63800dead1e7f9c84b0c9b0d7dd7c1fb219f4b02 Mon Sep 17 00:00:00 2001 From: Peter Colapietro Date: Fri, 21 Jan 2022 17:18:25 -0500 Subject: [PATCH] fix: conditionally set arch when installing hyperfine --- .devcontainer/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 2bea24155dabd..328916afd961f 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -20,4 +20,5 @@ RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/ RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g vercel yarn yalc pnpm nodemon" 2>&1 # Add hyperfine, a usefule benchmarking tool -RUN wget https://github.com/sharkdp/hyperfine/releases/download/v1.12.0/hyperfine_1.12.0_arm64.deb && dpkg -i hyperfine_1.12.0_arm64.deb \ No newline at end of file +RUN dpkgArch="$(dpkg --print-architecture)"; \ + wget "https://github.com/sharkdp/hyperfine/releases/download/v1.12.0/hyperfine_1.12.0_${dpkgArch}.deb" && dpkg -i "hyperfine_1.12.0_${dpkgArch}.deb"