Step1:

Create an Folder Structure and download the DataSet from Iris dataset from Kaggle.

Image description

Step2:

Create an Dockerfile for creating an docker image.

We can get the dependencies "FROM PYTHON:3.9" , it is used to get the dependencies.

We can run the required tools for running of the projects in this we have use pandas,matplotlib, scikit-learn for docker image to be run.

"RUN PIP INSTALL PANDAS MATPLOTLIB SCIKIT-LEARN"

We have to use Command "COPY . .", we have used it for source and destination.

We have used to start container by docker image command.

"CMD[python,"hello.py"]"

Image description

Step 3:

Create an docker image using
"docker build -t username/filename:latest ."

Image description

Image description