/matplotlib-minimal

Matplotlib 3 with Python3.8 on Alpine Linux

Primary LanguageDockerfileMIT LicenseMIT

Matplotlib 3.1.2 with Python 3.8 on Alpine Linux 3.10

János Czentye, HSNLab@BME

2019 December

Description

This repository provides a Dockerfile for building and image for Matplotlib 3.1.2 with Python3.8. Matplotlib is compiled from source using Python pip tool and PyPI repository version: https://pypi.org/project/matplotlib/

https://github.com/matplotlib/matplotlib/releases

The Docker image is based on the latest Alpine Linux 3.10 for a minimum size image(~140MB). It uses Alpine packages from main and community repos.

https://alpinelinux.org/

Older versions can be found under different tags.

Configuration

Matplotlib compiled with the following configuration:

    Edit setup.cfg to change the build options

    BUILDING MATPLOTLIB
                matplotlib: yes [3.1.0]
                    python: yes [3.7.3 (default, Apr 17 2019, 11:48:37) [GCC 8.3.0]]
                  platform: yes [linux]

    REQUIRED DEPENDENCIES AND EXTENSIONS
                     numpy: yes [version 1.16.3]
          install_requires: yes [handled by setuptools]
                    libagg: yes [pkg-config information for 'libagg' could not
                            be found. Using local copy.]
                  freetype: yes [version 2.10.0]
                       png: yes [version 1.6.37]
                     qhull: yes [pkg-config information for 'libqhull' could not
                            be found. Using local copy.]

    OPTIONAL SUBPACKAGES
     sample_data: yes [installing]
           tests: no  [skipping due to configuration]

    OPTIONAL BACKEND EXTENSIONS
             agg: yes [installing]
           tkagg: yes [installing; run-time loading from Python Tcl/Tk]
          macosx: no  [Mac OS-X only]

    OPTIONAL PACKAGE DATA
            dlls: no  [skipping due to configuration]

Download

To get the image use sudo docker pull czentye/matplotlib-minimal

Run

To run Python with Matplotlib use the following command sudo docker run -ti czentye/matplotlib-minimal python

License

Licensed under MIT license, see LICENSE file.