First flask was up and running on the port 1338 (specified in config.json) but docker-compose was forwarding it on 1338:1338.
Second I thought it would be nice to have a multistage Dockerfile, which is better because in the future pull requests we could add gunicorn to make the project suitable for production envs.
There were two problems that i faced: