Feature Request: Ability to Change Docker Command #1689
Replies: 4 comments 7 replies
-
I think it's now available, if so, please close this conversation |
Beta Was this translation helpful? Give feedback.
-
why do you want to change it? can you please give me an example use-case? |
Beta Was this translation helpful? Give feedback.
-
same here, workers and web on same image, so I need to use different CMD |
Beta Was this translation helpful? Give feedback.
-
One other workaround I've found is using environment variables to change the CMD dynamically. For my case (a rust app with a server and a worker), I have the CMD set to:
For the worker, I can set the BINARY_NAME environment variable to worker |
Beta Was this translation helpful? Give feedback.
-
I would love to be able to set a custom command when deploying a docker image
Current workaround: Create a docker-compose deployment with one service with the custom command
Beta Was this translation helpful? Give feedback.
All reactions