bashdockerdockerfilejenafuseki

Docker - Unable to mv a file inside a container


I am trying to give a set of bash instruction to my docker container when it launch.here is my docker file with all the instruction from line 5

but when I try to launch this docker file everything works great until the 'mv' command as you can see here : docker error telling me its not a directory

but when I try to move the file directly from the container (the exact same command as my docker file) it works :enter image description here

does anyone has an idea why its not working with the docker file instruction but working fine when I run the command manually ?


Solution

  • I fixed the issue by adding the creation of the folder named /fuseki/configuration in the set of instruction. It works fine and I can see this log :

    [2022-07-05 12:41:26] Config     INFO  Load configuration: file:///fuseki/configuration/safetybimontology_simple.ttl