Simplify Docker command #77
Replies: 1 comment 1 reply
-
|
Hi! Thanks for the feedback!
I chose to explicitly include the config path argument in the example, since most users will want to use a config and it helps avoiding the hassle of finding how to specify the config file location or how the Docker Compose
This one could theoretically be removed, but when specifying a config or some other option, it would have to be overridden anyway, so I don't think it's a change worth making. I'm closing this discussion now, but feel free to reopen it if you have any objections! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
in your docker compose exmaple this command is required in order to start the server:
-c /config/cup.json serveI think this could be simplified to nothing just by providing sane defaults.
-c /config/cup.json: This could be avoided by mounting the config to the default location. Mostly this is/etc/cup.json. The docs are referring to~/.config/cup.json.serve: this could be specified in theDockerfileas the default command:CMD serve. This command can easily be overridden when required. But inmost cases it isn't and thus reduces the noise.The
cmdin thedocker-compose.ymlcould thus be removed completely if the changes are implemented.What do you think?
Beta Was this translation helpful? Give feedback.
All reactions