Skip to content

rsdoherty/docker-flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-flask

This repository contains a basic Flask application and the related Docker files for running Flask in a container, as well as any other requirements that can be specified in requirements.txt

To get started, clone the repository:

git clone https://github.com/rsdoherty/docker-flask

cd into the cloned folder, and start the container:

docker-compose up --build

You can then browse to http://localhost:8888 in your browser, and the below should be returned:

{
    "Hello,": "world"
}

In docker-compose.yml, we are mounting the current directory to /app in the container. We're also using Flask in debug mode, which causes it to auto-reload when it detects a file has changed for faster development. Do not enable debug mode in production!

Useful Links

  • Flask - Flask Documentation
  • Docker Compose - Docker Compose documentation and syntax examples

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published