In my simple Dockerfile I’d like to cat/print/capture the value of a file.
When I run flyctl deploy with a step like RUN cat file.txt in the Dockerfile, the output gets hidden. I tried NO_COLOR=1 and the --verbose and --debug flags but still don’t see it.
Recent Docker versions tend to “eat” a lot of the terminal output during the build process. You can ask the builder to use the “old” behavior which is a bit more verbose by disabling BuildKit, and also to ask it to only build the image and not do a deploy while you debug the build process.