0

I want to customize JVM options and application command line arguments when I run dockerized Spring Boot application as example below:

java -Xms128M -Xmx256M -jar application.jar --spring.application.name=AcmeApplication

What is the best way to construct ENTRYPOINT?

ENTRYPOINT ["bash", "-c", "java -jar /application.jar"]
Kevin
  • 1,403
  • 4
  • 18
  • 34
  • 1
    There are many ways. The "best" way is a matter of opinion, and questions like that are off-topic – Stephen C Apr 07 '19 at 05:21
  • Can not pass command line arguments! Topics you gave do not resolve the problem! – Kevin Apr 07 '19 at 05:42
  • A number of the methods in the linked Q&A's **show** you how to pass arguments. Perhaps you had better explain (in your Question) specifically why they are not applicable to your particular use-case. – Stephen C Apr 07 '19 at 06:02
  • Here you may need: [https://medium.freecodecamp.org/docker-entrypoint-cmd-dockerfile-best-practices-abc591c30e21] – soyphea Apr 07 '19 at 08:10

0 Answers0