Skip to content
Discussion options

You must be logged in to vote

@scheung38 you don't need to explicitly set the command in your Dockerfile nor in your docker command. It's handled for you in the image.

Yes, the Dockerfile is quite less verbose, because it does a lot for you.

You can add an extra fragment of something like:

COPY /app/requirements.txt

RUN pip install -r /app/requirements.txt

And you don't need anything else apart from the normal.

Please read the docs here: https://github.com/tiangolo/uvicorn-gunicorn-fastapi-docker/blob/master/README.md

Replies: 15 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tiangolo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question or problem question-migrate
5 participants
Converted from issue

This discussion was converted from issue #571 on February 28, 2023 11:59.