Create a FlaskRESTful app with Docker and Gunicorn

Santiago Álvarez
2 min readMar 1, 2021

A FlaskRETFul app starter using Python, Docker and Gunicorn

  1. Create the project folder (e.g: flask-restful-gunicorn-starter) in your path desired:

2. Create app folder inside project folder

3. Create the FlaskRESTful app (app.py) in the app folder of the previous step

4. (Optional) Add flake8 file: create .flake8 file in app folder to modify the maximum lenght of characters for a Python code line. Maximum is set to 120 instead of 80 of PEP-8 standard. (Flake8 is a tool for style guide enforcement https://flake8.pycqa.org/en/latest/index.html).

5. Create requirements.txt file: in the project folder to install all the Python libraries required on the docker container:

--

--