Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Thanks for reaching out in Microsoft Q&A forum,
Based on the Web App for Containers deployment model, application files that are packaged as part of the deployed container image are not intended to be modified directly within the running container. The application runs from the container image deployed to the App Service.
Although it may be possible to access and modify files within a running container instance, changes made directly to the container's local filesystem are temporary and may be lost when the container is restarted, scaled out, redeployed, or recreated by the platform. This is expected behavior for containerized applications.
If you need to update the JavaScript files located in the feeds folder and those files are part of the deployed application image, the recommended approach is to update the application source code, rebuild the container image with the required changes, and then redeploy the updated image to Azure App Service.
If the application instead requires files to persist independently of the container lifecycle, persistent storage, such as Azure Storage mounted to the Web App, can be used. This is generally intended for persistent application data or files rather than for modifying application code within the deployed container image.
For additional information, please refer to the following Microsoft documentation:
- Configure a Custom Container - Azure App Service | Microsoft Learn
- Operating System Functionality in Azure App Service - Azure App Service | Microsoft Learn
Kindly let us know if the above helps or you need further assistance on this issue.
Please do not forget to
and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.