@Athanasios Polyzos Thanks for reaching out.
It seems like you have already set the locale in your Dockerfile build and have confirmed that it is installed in the image. However, when you run the image on Azure Web App, the locale remains as POSIX and you need to manually set it to en_US.UTF-8 through SSH console on every App service restart.
It is possible that the environment variables for the locale are not being set correctly when running the image on Azure Web App. You mentioned that you have set the lang
, language
, and lc_all
environment variables to en_US.UTF-8
, but it is not working in Azure.
One thing you can try is to set the environment variables in the Azure App Service application settings instead of in the Dockerfile.
Try adding the lang
, language
, and lc_all
environment variables with the value en_US.UTF-8
in the application settings and see if that resolves the issue.
If this does not work, it is possible that there is an issue with the way the Docker image is being deployed to Azure Web App. In this case, you may need to troubleshoot the deployment process to ensure that the environment variables are being set correctly.