Error response from daemon: Dockerfile parse error line 1: unknown instruction: #
I just tested the same and by default VSCode seems to save the Dockerfile with UTF-16 LE encoding.
Resaving the file as UTF-8 allowed docker build to run without error.
I forgot to have a whitespace in ENTRYPOINT["java",
It should be ENTRYPOINT ["java",
Solved by removing the dockerfile and creating it with Notepad instead of Visual Code