Hello - I wonder can anyone help me with a problem that is perplexing me.
I have a Dockerfile, inside it, is something like this (using made up names for example):
COPY vendor/project-source /usr/src/project-source
vendor/project-source there is a tree of folders like this:
project-source | -- module-one | | | -- code-files | -- module-two | | | -- code-files | -- build | --pre-built-binary
When the COPY runs, everything is copied across apart from the build folder and the binary.
So… I tried copying it explicitly…
COPY vendor/project-source /usr/src/project-source COPY vendor/project-source/build/pre-built-binary /usr/bin/pre-built-binary
While deploying, this gives an error:
[main] Step 11/29 : COPY vendor/project-source/build/pre-built-binary /usr/bin/pre-built-binary [main] lstat vendor/project-source/build/pre-built-binary: no such file or directory
I wondered was it being fussy because it had its executable flag set, so I did
chmod -x but still the same result.
Just for clarity, the pre-built binary is a program designed to run on target architecture so it is a valid binary.
Can anyone tell me if I am doing something very wrong here? The file is clearly in the folder tree…