Skip to content

A quick guide on how to Dockerize a flask application.

License

Notifications You must be signed in to change notification settings

eggOnion/Flask-Docker-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask-Docker-App

User-Authentication-in-Flask

Set up & Installation.

1 .Clone/Fork the git repo and create a virtual environment

Windows

git clone https://github.com/Dev-Elie/User-Authentication-in-Flask.git
cd User-Authentication-in-Flask
py -3 -m venv venv

macOS/Linux

git clone https://github.com/Dev-Elie/User-Authentication-in-Flask.git
cd User-Authentication-in-Flask
python3 -m venv venv

2 .Activate the environment

Windows

venv\Scripts\activate

macOS/Linux

. venv/bin/activate or source venv/bin/activate

3 .Install the requirements

Applies for windows/macOS/Linux

pip install -r requirements.txt

5. Run the application

python app.py

OR

Create a new application from scratch

Create a directory with a name "Flask-Docker-App"

Navigate to the newly created directory

cd Flask-Docker-App

Create a virtual environment

Windows

py -3 -m venv venv

macOS/Linux

python3 -m venv venv

2 .Activate the environment

Windows

venv\Scripts\activate

macOS/Linux

. venv/bin/activate or source venv/bin/activate

3 .Install Flask

pip install Flask

4. Create the required files

Create two files;app.py and Dockerfile touch app.py Dockerfile


Follow me on Twitter

dev_elie

About

A quick guide on how to Dockerize a flask application.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 85.4%
  • Python 14.6%