I am trying to copy files in Dockerfile.
Here is how my folder looks like.
main.R <- my main executable file
app <- folder with Dockerfile.
In Dockerfile I have the following commands:
RUN mkdir -p ~/application
COPY "../" "application/"
WORKDIR "application/"
ENTRYPOINT ["Rscript", "main.R"]
This does not work, it gives me error `Fatal error: cannot open file 'main.R': No such file or directory
If I move main.R
file inside app
folder everything works fine. How can I make it work without moving files.