FROM python:3.14.0a7-alpine3.21

Install required system dependencies

RUN apk add --no-cache build-base musl-dev linux-headers

Install Python libraries

RUN pip install --upgrade pip && \
    pip install pandas scikit-learn matplotlib

Copy and run your script

COPY . .
CMD [ "python", "hello_world_ml.py" ]

Build the Docker Image

docker build -t DockerUserName/dockerfilename:latest .

Run the Docker Image

docker run --rm DockerUserName/dockerfilename:latest

List Docker Images

docker image ls

Push the Image to DockerHub

docker push DockerUserName/dockerfilename:latest