How does one place commands in Dockerfile and build a working image? How can it be transferred to a singularity image?