Skip to content

wsunccake/docker-flask-hello

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

App

Prepare Environment

linux:~/hello # pip install -r requirements.txt

Run App

linux:~/hello # python app.py

Test App

linux:~/hello # curl http://127.0.0.1:8080

Docker

Build Image

linux:~/hello # docker build -t hello .

Run Container

linux:~/hello # docker run -itd -p8080:8080 --name hello hello

Stop Container

linux:~/hello # docker stop hello

Docker Compose

Run App

linux:~/hello # docker-compose up -d

Stop App

linux:~/hello # docker-compose stop

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages