FROM python:3.14.0a7-alpine3.21Install required system dependencies
RUN apk add --no-cache build-base musl-dev linux-headersInstall Python libraries
RUN pip install --upgrade pip && \
pip install pandas scikit-learn matplotlibCopy 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:latestList Docker Images
docker image lsPush the Image to DockerHub
docker push DockerUserName/dockerfilename:latest