'dockerfile, output evaluated commands

Is there anyway to have docker create output the evaluated line?

for example

# Dockerfile
COPY ${SRC}/file .

will echo Step 1/1 COPY ${SRC}/file .

I want it to output instead Step 1/1 COPY src/file .

Edit: I'm open to other packers that are somewhat compatible with Docker files, such as buildah bud



Solution 1:[1]

Open an issue with Buildah, and I think this would be a reasonable change.

Solution 2:[2]

You could try listing the contents of the directory by using ls in the next step.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 rhatdan
Solution 2 Krushnal Patel