The only way is to add the current directory to a specific directory and list it.
Try creating this Docker file:
FROM busybox
RUN mkdir /tmp/build/
ADD . /tmp/build/
Build it with:
docker build -t test .
List all the files and directories in / tmp / build:
docker run --rm -it test find /tmp/build