From 9da086841ed6be69c35c4610236b6387cace8899 Mon Sep 17 00:00:00 2001 From: madhavi0891 <66946576+madhavi0891@users.noreply.github.com> Date: Sat, 12 Sep 2020 11:50:38 +0530 Subject: [PATCH] Create Dockerfile --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..669700c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +# Start with a base image containing Java runtime +FROM openjdk:8-jdk-alpine + +# Add a volume pointing to /tmp +VOLUME /tmp + +# Make port 8080 available to the world outside this container +EXPOSE 8080 + +# The application's jar file +ARG JAR_FILE=target/sb-helloworld-0.0.1-SNAPSHOT.jar + +# Add the application's jar to the container +ADD ${JAR_FILE} app.jar + +# Run the jar file +ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]