Sign inSign up

ivandemartino/fastapi

By ivandemartino

•Updated almost 5 years ago

fastapi based on python 3.6

Image
1

196

ivandemartino/fastapi repository overview

pull image from repository

docker pull ivandemartino/fastapi:tag

create a folder on you filesystem (ex:/home/myuser/somefolder) and, inside it, copy your fastapi application with file name run.py

create container:

  • map your local folder to /src/app
  • bind docker exposed port 8000 to you host port
  • choose a name

execute command:

docker run -it -v "your-folder":/src/app --name choosename --publish 8000:8000 ivandemartino/fastapi:tag 

for first run copy the following code to your run.py

from fastapi import FastAPI

app = FastAPI()

@app.get("/")
def read_root():
    return { "Lux app": "Welcome to Lux app" }

this is a python3.6 fastapi image with the following pip requirements:

  • anyio 3.3.4
  • asgiref 3.4.1
  • bcrypt 3.2.0
  • cffi 1.15.0
  • click 8.0.3
  • colorama 0.4.4
  • contextlib2 21.6.0
  • contextvars 2.4
  • cryptography 35.0.0
  • dataclasses 0.8
  • ecdsa 0.17.0
  • fastapi 0.70.0
  • greenlet 1.1.2
  • h11 0.12.0
  • idna 3.3
  • immutables 0.16
  • importlib-metadata 4.8.1
  • passlib 1.7.4
  • pyasn1 0.4.8
  • pycparser 2.20
  • pydantic 1.8.2
  • python-jose 3.3.0
  • python-multipart 0.0.5
  • rsa 4.7.2
  • six 1.16.0
  • sniffio 1.2.0
  • SQLAlchemy 1.4.26
  • starlette 0.16.0
  • typing-extensions 3.10.0.2
  • uvicorn 0.15.0
  • zipp 3.6.0

Tag summary

Content type

Image

Digest

Size

159.8 MB

Last updated

almost 5 years ago

docker pull ivandemartino/fastapi:python36-alpine