I have an app in Private Space built on Container Registry & Runtime. The app has one or more
Dockerfiles for each process type as well as the
heroku.yml file with which the
run secion defines commands to be started on each process type.
However, looking into the app logs, it seems that the platform is running the command defined in
CMD line on
Dockerfile or an empty process that immediately exits with status 0 when
CMD is not defined.
Unfortunately, Private Spaces doesn't honor the
run section in
heroku.yml file yet. Instead, the platform looks up the command defined as
Dockerfile. Please define the process to run there.
If there are more than one process type for the app,
heroku.yml needs to list corresponding Dockerfiles like:
build: docker: web: Dockerfile worker: Dockerfile.worker