Skip to content

Instantly share code, notes, and snippets.

@pjullah
Last active May 12, 2017 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjullah/eecd46772959db1691088ac17b8c4c82 to your computer and use it in GitHub Desktop.
Save pjullah/eecd46772959db1691088ac17b8c4c82 to your computer and use it in GitHub Desktop.
Package a Clojure application as a Docker image
#https://juxt.pro/blog/posts/beanstalk.html
FROM java:8

ADD target/myproj.0.1.0-SNAPSHOT-standalone.jar /srv/myproj-app.jar

EXPOSE 8080

CMD ["java", "-jar", "/srv/myproj-app.jar"]
$GIT_SHA=$(git rev-parse --short HEAD); docker build -t template-build:${GIT_SHA} .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment