This is my machine learning and general utility Python image
I do not manage versions of the dockerfile, so I suggest you perform the following steps:
- In your repo, add the following line:
FROM billraymond/machine-learning-general-purpose:latest
- Copy over the
./devcontainer
folder from this repo and modify theconfigure-git.sh
file to use your user.email and user.name. - Note that you can add, remove, or modify the VSC extensions in the
./devcontainer/devcontainer.json file
If you want to customize the container, I recommend you download the code (ex zip file) so you can use the ./devcontainer
folder and tailor that to your needs as well.
While the requirements for this image may change over time, the devcontainer will include:
- An LTS version of Ubuntu
- The latest version of Python 3 from the APT package manager
- Other items may include Git, Tensorflow, Git, h5py, SciKitLearn, and more
- Check out the Dockerfile contained in this repo for more details of what is or is not installed
Here is an example Dockerfile for another repo I manage that adds more capabilities, like OpenAI's API, tabulate, pandoc, markdown, and more. Note that it pulls from the base DockerHub container and then adds more packages to it.
Dockerfile
FROM billraymond/machine-learning-general-purpose:latest
# Install pillow qr code and pillow for graphics manipulation
RUN pip install --no-cache-dir qrcode[pil] && \
pip install --no-cache-dir --upgrade pillow
# Install various tools in support of utilities
RUN pip install --no-cache-dir python-pptx \
openai \
tabulate \
pandoc \
markdown2 \
pdfkit \
beautifulsoup4
RUN apt-get update
RUN apt-get install -y wkhtmltopdf
RUN rm -rf /var/lib/apt/lists/*
This is a genearl purpose solution for me, but if you have some ideas or recommendations, feel free to submit a pull request or open an issue.