Lanka Developers Community

    Lanka Developers

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Shop
    1. Home
    2. SachithAnu
    3. Best
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 5
    • Best 1
    • Controversial 0
    • Groups 3

    Best posts made by SachithAnu

    • Java application with docker

      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?

      posted in General Discussion
      SachithAnu
      SachithAnu
    • 1 / 1