From: Sebastián Ramírez Date: Sat, 2 Mar 2019 13:52:24 +0000 (+0400) Subject: :memo: Add note about bigger applications in Docker X-Git-Tag: 0.6.4~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=13772fbd11359a8e104fb789b33452b936e249bd;p=thirdparty%2Ffastapi%2Ffastapi.git :memo: Add note about bigger applications in Docker --- diff --git a/docs/deployment.md b/docs/deployment.md index a7748a3628..7176650324 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -81,6 +81,18 @@ docker run -d --name mycontainer -p 80:80 myimage Now you have an optimized FastAPI server in a Docker container. Auto-tuned for your current server (and number of CPU cores). +#### Bigger Applications + +If you followed the section about creating Bigger Applications with Multiple Files +, your `Dockerfile` might instead look like: + +```Dockerfile +FROM tiangolo/uvicorn-gunicorn-fastapi:python3.7 + +COPY ./app /app/app +``` + + ### Check it You should be able to check it in your Docker container's URL, for example: http://192.168.99.100/items/5?q=somequery or http://127.0.0.1/items/5?q=somequery (or equivalent, using your Docker host).