🚀 Build & run • 🔍 Why Alpine Linux for data science?
The repository is devoted to a sample container image built on the top of Alpine Linux that installs some data science dependencies using the "apk" package manager and runs a python script.
The image can be built using the following command:
$ docker build --tag ds .Run the image using
docker run -it --name ds-container -v "$PWD:/var/ds" dsRun the image using Powershell and {$PWD} due to $PWD not being avaliable in command prompt on Windows.
docker run -it --name ds-container -v "{$PWD}:/var/ds" dsThe image can be built using the following command:
$ podman build --tag ds .Run the image using
podman run -it --name ds-container -v "$PWD:/var/ds" dsRun the image using Powershell and {$PWD} due to $PWD not being avaliable in command prompt on Windows.
podman run -it --name ds-container -v "{$PWD}:/var/ds" dsSome interesting facts:
- Small container image.
- Alpine Linux allows a lot of customization.
- Excellent package manager.
- Many data science tools already exist in the Alpine ecosystem. They can be easily installed using the "apk" command ( e.g., Python tools: NumPy, scipy, scikit-learn, seaborn, matplotlib, niapy, deap, pyswarms, jupyter, etc.) NOTE: if you are installing a Python package using "apk" that is not pure CLI (Command Line Interface), you should prepend "py3-" before the name of the package.
- Excellent community.
This software is provided as-is, and there are no guarantees that it fits your purposes or that it is bug-free. Use it at your own risk!