Hi @William Huynh , I understand that you have an Azure Container Apps and found that it restarts itself regularly, which causes you to lose your directory and packages.
First, regarding restarting itself. Please note that Azure Container Apps restart regularly, so don't expect state to persist inside a container.
Azure Container Apps has a Container-scoped storage (its own files system). Container file system storage has the following characteristics:
- The storage is temporary and disappears when the container is shut down or restarted.
- Files written to this storage are only visible to processes running in the current container.
You should include all necessary files/directories and installed packages in the container image, then deploy the container image into Azure Container Apps.
If you need a persistent storage, you can mount an Azure Files volume to your Container Apps. More info: Azure Files volume for Azure Container Apps.
Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.