Closed sw1nn closed 3 years ago
This changes the default way the docker image runs. The motivation is to be able to use the images created here as command line tools. e.g.
$ lein uberimage ... Built image 123asdf131 [test/image] docker run -it test/image --arg1 param1
Previously you would have to do this:
docker run -it test/image /usr/bin/java -jar /uberjar.jar --arg1 param1
You still have the option to not have an entrypoint, but you must explicitly define that with :entrypoint nil in the project.clj config.
:entrypoint nil
project.clj
Tidying up
This changes the default way the docker image runs. The motivation is to be able to use the images created here as command line tools. e.g.
Previously you would have to do this:
You still have the option to not have an entrypoint, but you must explicitly define that with
:entrypoint nil
in theproject.clj
config.