Flask Challenge #01 : First Application

Hello, I'm Joseph Konka, Python enthousiast. Flask is a Python framework for building web application developing. In this project, I'm building a basic app with Flask and deploying it with Docker. I hope it will help you to understand the docker deployment. Bye !

Setup Virtual Environment

python -m venv env
.\env\Scripts\activate.bat
pip install -r requirements.txt

Run app

python app.py
flask run --debug --host=0.0.0.0 --port=5000
flask --app app run --debug --host=0.0.0.0 --port=5000

Run with Docker

docker build -f Dockerfile -t iflaskapp .
docker run -p 5000:5000 \
    --restart=always \
    --name cflaskapp \
    -d iflaskapp

Resources

Let's get in touch

Github Badge Linkedin Badge Twitter Badge Gmail Badge