Azure / azure-dev

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.
https://aka.ms/azd
MIT License
410 stars 198 forks source link

[Issue] Prepackage hooks runs after building the docker image the first time #4136

Open john0isaac opened 3 months ago

john0isaac commented 3 months ago

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.

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:

Screenshot 2024-07-22 at 3 31 24 AM

Container:

Screenshot 2024-07-22 at 3 30 46 AM

To Reproduce

Expected behavior The static folder to be packaged with the docker image.

john0isaac commented 3 months ago

I have read this https://github.com/Azure/azure-dev/issues/3546#issuecomment-2005003062 and currently wondering why is it not consistent in that behavior? this only happens in the first run of the commands.