From c83e1eb17577b04718fbb5d155ba44c285c80768 Mon Sep 17 00:00:00 2001 From: JacobCrabill Date: Wed, 3 Aug 2022 08:42:44 -0700 Subject: [PATCH] Tools: Docker: Add dummy file for COPY command Allows the main target of teh COPY command to fail if the file doesn't exist ('COPY' requires at least one valid file to copy). --- Tools/setup/Dockerfile | 3 ++- Tools/setup/dummy.file | 0 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 Tools/setup/dummy.file diff --git a/Tools/setup/Dockerfile b/Tools/setup/Dockerfile index d81564fade..de9f6459ef 100644 --- a/Tools/setup/Dockerfile +++ b/Tools/setup/Dockerfile @@ -27,7 +27,8 @@ COPY Tools/setup/ubuntu.sh /tmp/ubuntu.sh # We support pre-downloading the gcc arm none eabi compiler # to speed up build times, if the file is not present when # building, the ubuntu.sh script will download it from source -COPY gcc-arm-none-eabi-9-2020-q2-update-linux.tar.* /tmp/ +# To make this conditional, copy an extra 'dummy' file as well +COPY Tools/setup/dummy.file gcc-arm-none-eabi-9-2020-q2-update-linux.tar.* /tmp/ # The PATH env is set within ubuntu.sh, but given how we # are running the image using `gosu` to avoid read-only problems # with the filesystem the env variable does not persist diff --git a/Tools/setup/dummy.file b/Tools/setup/dummy.file new file mode 100644 index 0000000000..e69de29bb2