I am trying to use powershell script under cloud run.
I have created docker file as below-
Hi @gcloudLearning,
Welcome to the Google Cloud Community!
The reason why it is running with .sh (bash) is because bash is automatically installed in the Cloud CLi. Powershell is not yet installed that's why the application is not starting and "pwsh" is not found.
You should add this after the "FROM google/cloud-sdk" line:
RUN apt-get update && apt-get install -y pwsh
This will install the Powershell on your image. Once you have done this, you should be able to run your Powershell script.
You can also get in touch with Google Cloud Support if the above option doesn't work.
Let me know if it helped, thanks!