Coder Social home page Coder Social logo

Comments (3)

lazarillo avatar lazarillo commented on September 23, 2024

I think no one may have responded because your question is not clear.

Are you really asking why python3.8-slim does not have FastAPI on it? FastAPI is a specific web framework. While it is a great framework, I would suspect that (a) 99.9% of Python projects do not use it, and (b) it is quite large. It is not something that the 99.9% of other projects would want bulking up their work.

Or, do you mean to ask, "why is there no 'slim' version of fastapi"? My guess is that no one has had the time or energy to create it. I suspect if you put together a good Dockerfile to do this, it would be accepted into the project.

from uvicorn-gunicorn-fastapi-docker.

naveen-marthala avatar naveen-marthala commented on September 23, 2024

Just like 99.9% of python projects don't use FastAPI, so are uvicorn and gunicorn, which are installed in the image. So, my question was to ask about the absence of FastAPI, when it's dependencies are installed in the image.

EDIT: Or should I be asking about the presence of uvicorn and gunicorn, when 99.9% of projects don't actually use them.

from uvicorn-gunicorn-fastapi-docker.

tiangolo avatar tiangolo commented on September 23, 2024

I assume you solved it, thanks for closing the issue 👍

Anyway, I checked, and FastAPI seems to be included as expected 🤷

$ docker run --rm -it tiangolo/uvicorn-gunicorn-fastapi:python3.8-slim pip3 freeze
Unable to find image 'tiangolo/uvicorn-gunicorn-fastapi:python3.8-slim' locally
python3.8-slim: Pulling from tiangolo/uvicorn-gunicorn-fastapi
54fec2fa59d0: Pull complete
cd3f35d84cab: Pull complete
a0afc8e92ef0: Pull complete
9691f23efdb7: Pull complete
9fd98872783d: Pull complete
87f9e3d4e596: Pull complete
a815d3c0e7f7: Pull complete
4c9600199185: Pull complete
ad63dfa2975a: Pull complete
a0df076a6f63: Pull complete
53e0503c66c0: Pull complete
5107cbf6f48a: Pull complete
287285a75ba3: Pull complete
5aae5624408d: Pull complete
Digest: sha256:edb2e3ecbb922c199ce23ca8b4dc60bdf65a7829bc2b6bd3767392566f437e04
Status: Downloaded newer image for tiangolo/uvicorn-gunicorn-fastapi:python3.8-slim
click==7.1.1
fastapi==0.62.0
gunicorn==20.0.4
h11==0.9.0
httptools==0.1.1
pydantic==1.7.3
starlette==0.13.6
uvicorn==0.11.3
uvloop==0.14.0
websockets==8.1

from uvicorn-gunicorn-fastapi-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.