2

I am trying to write a simple Dockerfile, similar to hello-world.

The image attached shows:

  1. The hello-world Dockerfile
  2. My Dockerfile
  3. The results of docker build

The syntax in my Dockerfile appears to be identical to the one from hello-world, yet no matter what combination of paths I use, I can't just COPY hello.sh to the root of the image. I can copy it to a subfolder using different syntax.

Any ideas?

enter image description here

3
  • Is there a .dockerignore file in that directory? ls -al output may help.
    – BMitch
    Oct 1, 2016 at 18:20
  • @BMitch no, there is no .dockerignore.
    – Dave
    Oct 2, 2016 at 19:30
  • do you try COPY hello.sh /subfolder/../ ?) May 7, 2019 at 13:09

0

Browse other questions tagged .