I am getting the following "permission denied" error when trying to deploy an image to Cloud Run:
Application failed to start: Failed to create init process: Failed to load /usr/local/bin/dumb-init: permission denied
The Dockerfile contains these instructions:
....
....
ADD https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64 /usr/local/bin/dumb-init
RUN chmod +x /usr/local/bin/dumb-init
....
....
ENTRYPOINT ["dumb-init", "--"]
The image runs successfully locally but cannot be deployed to Cloud run due to the above error.
PORT
env var. But this doesn't really explain thepermission denied
error. Also note that Cloud Run doesn't allow passing extra arguments to your process, so you're actually executing ["dumb-init", "--"]. I'm surprised it runs fine locally. – Ahmet Alp Balkan