Dockerfile for azure functions python using fastapi and poetry

Vinod Kumar 25 Reputation points
2024-09-01T09:38:17.4+00:00

I was able to get an azure function app with fastapi running using the example here: https://github.com/Azure-Samples/fastapi-on-azure-functions

I want to containerize my app. I also want able to acheive it using the sample generated by VS code. It uses the azure functions python base image and pip.

Here's my current hurdle. I prefer to use poetry over pip. I can't figure out how to containerize the app with poetry instead of pip. Do you have a sample of a Dockerfile for my scenario?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,907 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vinod Kumar 25 Reputation points
    2024-09-05T03:52:47.06+00:00

    It was a bug in my code. Fixing it fixed the issue.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.