8000 GitHub - k90262/python-docker-example
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

k90262/python-docker-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Simple python docker dev example for the official docker docs

https://docs.docker.com/language/python/containerize/


Run program with required module (Not use docker)

(Using venv to install dependent packages on a local folder we assigned)

Demo Steps:

git clone https://github.com/k90262/python-docker-example.git
cd python-docker-example
# python3 app.py # Throw Error! it cannot import FastAPI module
python3 -m venv .venv
source .venv/bin/activate
> pip install -r requirements.txt
> pip install uvicorn
> uvicorn app:app --reload
deactivate

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
0