A developer CLI that reduces the time it takes for you to get started on Azure. The Azure Developer CLI (azd) provides a set of developer-friendly commands that map to key stages in your workflow - code, build, deploy, monitor, repeat.
Output from azd versionazd version 1.9.5 (commit cd2b7af9995d358aab33c782614f801ac1997dde)
Describe the bug
I have only seen this issue with container apps and it only happens when you have a new environment in the first run.
For azd package the first time it will not run the hooks at all.
For azd up the first time the hook runs after the building the docker image.
The hooks generates the static folder successfully as you can see in the workspace but if you build a container from the image the folder doesn't exist as it was generated after building the image.
Output from
azd version
azd version 1.9.5 (commit cd2b7af9995d358aab33c782614f801ac1997dde)
Describe the bug I have only seen this issue with container apps and it only happens when you have a new environment in the first run.
azd package
the first time it will not run the hooks at all.azd up
the first time the hook runs after the building the docker image.The hooks generates the static folder successfully as you can see in the workspace but if you build a container from the image the folder doesn't exist as it was generated after building the image.
Workspace:
Container:
To Reproduce
Expected behavior The static folder to be packaged with the docker image.