Minimal Compojure + Ring app, ready to be uberjared and Dockerized.
Clone project. Replace cljfoo with your project's name.
To start a web server for the application, run:
lein ring server
Create standard uberjar, build the Docker image, run it like the wind.
-
Create uberjar
lein uberjar -
Build Docker image
docker build -t cljfoo . -
Run container
docker run -d \ # daemonized -p 80:3000 \ # host:jetty -p 3001:3001 \ # host:nrepl --name cljfoo \ # container name cljfoo # image
Copyright © 2016 Johan Mena
Distributed under the Eclipse Public License, the same as Clojure.