Hi! I’ve written small code in Java which has a given URL and downloading its content to the disc.
I do have Dockerfile:
COPY . /usr
RUN javac Main.java
CMD [“java”, “Main”]
and my code in Main.java which works perfectly on my pc. I’ve added a lince of code which should tell me what the path of my downloaded file is. Of course it says - /usr/pic.png
But there is nothing like that in there. Any ideas?
I’m building a new image: docker build -t app
then i run it: docker run -it --rm --name final app
Everything works, but there is no my file, and its not hidden.