8
FastAPI keeps generating local index.html*
(lemmy.world)
Welcome to the Python community on the programming.dev Lemmy instance!
Past
November 2023
October 2023
July 2023
August 2023
September 2023
This is a FastAPI feature - Autogenerated documentation using Swagger.
You can turn it off by setting
docs_url=None
In your linked main.py:
Hope this helps!
That's weird, I have never noticed any kind of .html files generation when accessing the docs and I have worked with F.Api for some time now, also can't seem to find ang mention of this generation in the docs (that it actually writes files).
Also isn't the default doc path
/docs
(/redoc
)Ok, that was stupid. Doing healthcheck with wget, does what wget does: it downloads the result. I had to add --spider to stop doing that
usually I would use just curl for hc
To me it depends on the base image. Some don't have curl, but have wget. I would go with the flow instead of installing it myself. Especially if I can get away with not having to add more layers for an image of my own and/or using the same command for all containers