Created
April 23, 2014 21:15
-
-
Save evandbrown/11232711 to your computer and use it in GitHub Desktop.
Dockerfile for Spring Boot
This file contains hidden or 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
FROM dockerfile/java | |
# Assumes your-app.jar is in the same dir as Dockerfile when you do a `docker build .` | |
ADD your-app.jar /src/ | |
# Also assumes your app exposes port 8080 | |
EXPOSE 8080 | |
# Run it! | |
CMD ["java", "-jar", "/src/your-app.jar"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put this in a directory with your-app.jar, zip the two files (not the directory that contains them), and deploy to EB.