New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure Functions docker image - Docker slim fails #614
Labels
Comments
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... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: