docker

PB 2018-02-26T19:57:31.000146Z

@hawari.rahman17 there is a simpler way to do it. It's definitely not idea to change the CMD with every image you build

;; project.clj

:profiles {
             :my-app
             {
              :aot :all
              :main api-server.my-app
              :uberjar-name "my-app.jar"
              }
 ...
Then you can leave your command as such: CMD ["java", "-jar", "target/my-app.jar"]

👍 1