# Start with a base image containing Java runtime
FROM openjdk:17-jdk-slim-buster
# Add Maintainer Info
MAINTAINER Mohd Sajid Shaikh <msajid@salezshark.com>
# Add a volume pointing to /tmp
VOLUME /tmp
# Make port 8707 available to the world outside this container
EXPOSE 8707
# The application's jar file
ARG JAR_FILE=engage-zapier-0.0.1-SNAPSHOT.jar
# Add the application's jar to the container
ADD ${JAR_FILE} engage-zapier-0.0.1-SNAPSHOT.jar
# Run the jar file
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","engage-zapier-0.0.1-SNAPSHOT.jar"]
-
Sajid Shaikh authoredcb4bb7ab