Open sudharsan2020 opened 7 months ago
Thank you for opening the issue and providing so much information! Going through it and I'll share my comments soon. We'll try to use the existing flags to make it work. One of the most basic flags to use is the --include-path flag and point at your app directory. There are a lot of others including flags to provide custom env vars, which some apps need or custom http probes, which some languages need...
Expected Behavior
We are trying to reduce the Docker image size of Azure functions using
slim
https://github.com/Azure/azure-functions-docker However, the generated slim docker image is failing.Base docker image chosen: https://github.com/Azure/azure-functions-docker/blob/dev/host/4/bullseye/amd64/python/python311/python311-slim.Dockerfile
Our docker image
Original and Trimmed docker image sizes:
Actual Behavior
The trimmed version of the Docker instance fails to load the function with the error message
0 functions loaded
Steps to Reproduce the Problem
1.build --target demo:v1
Specifications