Last active
August 29, 2015 14:27
Docker File for the Stokker application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This image will be based on an image configured with Java 8 | |
FROM java:8 | |
MAINTAINER Victor Ferrer <vferrer2005@gmail.com> | |
# This is the directory used by Tomcat to deploy the app | |
VOLUME /tmp | |
# This will add our jar as executable with the alias "app.jar" | |
ADD stokker-0.0.1-SNAPSHOT.jar app.jar | |
# This adds the current directory as input file for the | |
# historical quotations | |
ENV historical.files.input.directory . | |
# Done to update the file timestamp | |
RUN bash -c 'touch /app.jar' | |
# urandom property modified for a faster startup | |
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"] | |
# Expose Tomcat and ElasticSearch ports | |
EXPOSE 8080 9200 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment