Skip to content

Instantly share code, notes, and snippets.

@kartikshah
Created July 22, 2016 20:47
Show Gist options
  • Save kartikshah/c88b039a7cbc3085897df598ec3e27b0 to your computer and use it in GitHub Desktop.
Save kartikshah/c88b039a7cbc3085897df598ec3e27b0 to your computer and use it in GitHub Desktop.
Sample Dockerfile for springboot app
FROM frolvlad/alpine-oraclejdk8:slim
VOLUME /tmp
ADD options-analyzer-1.0-SNAPSHOT.jar app.jar
RUN sh -c 'touch /app.jar'
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/app.jar"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment