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).
This commit is contained in:
JacobCrabill 2022-08-03 08:42:44 -07:00
parent ba9b23c2d1
commit c83e1eb175
2 changed files with 2 additions and 1 deletions

View File

@ -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

0
Tools/setup/dummy.file Normal file
View File