Linked Questions

Popular Questions

I have a Dockerfile that defines a dotnet ENTRYPOINT. In addition, I have a program that is configured to run under supervisor (with a supervisord.conf definition). When the container is run, I need to start the supervisor service and also pass several args to the ENTRYPOINT executable. I cannot combine ENTRYPOINT and CMD because CMD args are unrelated to ENTRYPOINT. I'd also like to keep the ENTRYPOINT to explicitly have the container wrap dotnet exec. Any thoughts on how this can be accomplished?

I know my scenario works in entirety since I can attach to a running container then starting the supervisor service.

FROM microsoft/dotnet:2.1-aspnetcore-runtime AS base
FROM base AS final    
ENTRYPOINT ["dotnet", "BLAH.dll"]
CMD ["service", "supervisor", "start"]

Related Questions