How do I see the list of files/artifacts available...
# general
s
How do I see the list of files/artifacts available in the docker context when using
pants package ::
if I'm building a
docker_image
?
a
I don't know of a way to list them, but, and it's been more than a year since I fought this issue, I vaguely remember that there was either a debug message or something part of an error message that you got when trying to access things that don't exist.
c
There are two ways on top of my mind: a) as @ancient-france-42909 mentions, if you have a
COPY
instruction referencing a non-existing file, the error message will list all files actually available. Or b) run with
--keep-sandboxes=on_failure
and inspect the sandbox for the
docker build
command.