Java file content:-
class Hello {
Public static void main(String[] args) {
System.out.println(“This is Java app\n by using Docker”);
}
}
Docker file content
FROM java:8
COPY ./var/www/java
WORKDIR /var/www/java
RUN javac Hello.java
CMD ["JAVA", "Hello"]
Content folder name is:- java-docker-app
Build command:- docker build -t java-app .
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /Users/sachithanuranga/java-docker-app/Dockerfile: no such file or directory
I have above error when build the docker file.
CAN SOMEONE HELP FOR ME?