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,"python.py"]"

Image description

Step 3:

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

Image description

Step 4:

Run the Docker image using

Image description

Step 5:

Create an new branch in github repository and change that particular repository.

Image description

Step 6:

push the changes using add , commit , push to specific origin.

Image description