Should I use Docker for my IoT project?

Hi everyone.

I’m developing a Web server based project for IoT devices. I’d like to simplify the installation and usage of the project which is written in Python2 and have 3+ pip dependencies. So, I’d like to use Docker for this purpose.
But I got some questions. First of all, is this right to use Docker for the distribution of a IoT project? I don’t think Docker is not designed for this at all but I can’t think of another way. I’m open to suggestions.
Second of all, I want to use Dockerfile like this:

FROM python:2
# git clone project-repo
# install dependencies with pip
# execute the main file

Is it eligible? I sense there’s some other ways to do it.
Or should I not use Docker, just release the project with a normal dependencies list and without containerization?