Dockerfile for Java application

PHOTO EMBED

Sun Nov 29 2020 18:21:12 GMT+0000 (UTC)

Saved by @ankity09 #aws,ckad

FROM openjdk:11-jre-slim
WORKDIR /app
COPY target/java-hello-world-0.0.1.jar java-hello-world.jar
ENTRYPOINT ["java", "-jar", "/app/java-hello-world.jar"]
EXPOSE 8080
content_copyCOPY

creates a image for Hello World Java application