Skip to content

Instantly share code, notes, and snippets.

@Velrok
Created December 21, 2014 23:31
Show Gist options
  • Save Velrok/e9fb18442b0a91a3fafa to your computer and use it in GitHub Desktop.
Save Velrok/e9fb18442b0a91a3fafa to your computer and use it in GitHub Desktop.
Example Dockerfile for a clojure app.
FROM java:7
MAINTAINER Velrok
RUN mkdir -p /opt/mb
ADD ./target/mb.jar /opt/mb/mb.jar
ADD ./VERSION /opt/mb/VERSION
ADD ./public /opt/mb/public
WORKDIR /opt/mb
EXPOSE 3000
ENV APP_ENV production
ENTRYPOINT java -jar mb.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment