argument of USER instruction won't get expanded
my dockerfile contains:
USER ${USER_ID}
and it results into:
==================================== COMMIT ====================================
----------> container committed
- id: 5010c004858b1806a0a33cb322decc33ac40cd96bfd58e77d58551e40baf6325
- image: sha256:7113589ec5e0167b37d6c2d7e83cbdc800e1e9c5260080fd92f783654bad2440
======> CACHE - SAVE
id: sha256:7113589ec5e0167b37d6c2d7e83cbdc800e1e9c5260080fd92f783654bad2440
parent: sha256:da1eb7803da9cb9e76cf13de9e447c477786815744eac95fbfa297916391e467
layer 9: [<User ${USER_ID}>]
----------> container removed
- id: 5010c004858b1806a0a33cb322decc33ac40cd96bfd58e77d58551e40baf6325
=================================== LAYER 10 ===================================
======> CACHE - IMAGE NOT FOUND
parent: sha256:7113589ec5e0167b37d6c2d7e83cbdc800e1e9c5260080fd92f783654bad2440
layer 10: [<Run if [ $WITH_TEST == "yes" ] ; then cargo install clippy || : ; fi>]
----------> container created
- id: e3ca68719329552d10b01764ae43a66277974af16473977305c14761dca02601
######> Build failed:
500 Server Error: Internal Server Error ("linux spec user: unable to find user ${USER_ID}: no matching entries in passwd file")
Error: There occurred an error during building an image:
500 Server Error: Internal Server Error ("linux spec user: unable to find user ${USER_ID}: no matching entries in passwd file")