-
When trying to deploy a Web API as a Azure Container App I receive a timeout error pushing the image.
If I trim the project, set PublishTrimmed to true, then I can get it to deploy most of the time. But trimming the app breaks the app, in it's current form, and trimming isn't officially supported for this type of app. Are there other workarounds for pushing the image without timing out? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
cc @baronfel |
Beta Was this translation helpful? Give feedback.
-
Thank you for getting it routed to the right place. Okay, thank you. This project is just a learning experiment, so yeah, for now I push the image myself. |
Beta Was this translation helpful? Give feedback.
-
It sounds like the timeout is hit because what gets uploaded is "large", that is:
You could try to force the upload to chunked by setting this envvar The chunks will only be 64kB which might cause a slow upload. |
Beta Was this translation helpful? Give feedback.
We don't currently have a way to set this timeout with the container tooling. I've logged dotnet/sdk-container-builds#543 to track adding some kind of way to work around this. In the interim as a workaround I'd suggest pushing to a local docker daemon and then using
docker push
to have Docker push the image to your destination registry.