Created
October 25, 2025 16:06
-
-
Save pruperting/ee97230cf1c9ca859f44e4d34328234a to your computer and use it in GitHub Desktop.
Updated essentia with Gia dockerfile for portainer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:20.04 | |
| ARG ESSENTIA_VERSION=2.1_beta5 | |
| ENV LANG C.UTF-8 | |
| # Install runtime dependencies | |
| RUN apt-get update \ | |
| && apt-get -y upgrade \ | |
| && DEBIAN_FRONTEND=noninteractive apt-get install -y \ | |
| python3-matplotlib python3-numpy python3-six python3-yaml \ | |
| libfftw3-3 libyaml-0-2 libtag1v5 libsamplerate0 \ | |
| libavcodec58 libavformat58 libavutil56 libavresample4 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install build dependencies, including correct Qt5 packages | |
| RUN apt-get update \ | |
| && apt-get install -y build-essential python3-dev git \ | |
| libfftw3-dev libavcodec-dev libavformat-dev libavresample-dev \ | |
| libsamplerate0-dev libtag1-dev libyaml-dev libeigen3-dev \ | |
| libchromaprint-dev swig \ | |
| qtbase5-dev libqt5webkit5-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # --- THIS IS THE FIX --- | |
| # Create a symlink for the Eigen3 headers so the compiler can find them | |
| RUN ln -s /usr/include/eigen3/Eigen /usr/include/Eigen | |
| # Gaia | |
| RUN mkdir /essentia && cd /essentia && git clone https://github.com/MTG/gaia.git \ | |
| && cd /essentia/gaia && python3 waf configure --with-python-bindings \ | |
| && python3 waf && python3 waf install && ldconfig | |
| # Essentia | |
| RUN cd /essentia && git clone https://github.com/MTG/essentia.git \ | |
| && cd /essentia/essentia && git checkout "v$ESSENTIA_VERSION" && python3 waf configure --with-python --with-gaia --with-examples --with-vamp \ | |
| && python3 waf && python3 waf install && ldconfig \ | |
| && apt-get remove -y build-essential libyaml-dev libfftw3-dev libavcodec-dev \ | |
| libavformat-dev libavresample-dev python3-dev libsamplerate0-dev \ | |
| libtag1-dev libeigen3-dev libchromaprint-dev swig \ | |
| qtbase5-dev libqt5webkit5-dev \ | |
| && apt-get autoremove -y \ | |
| && apt-get clean -y \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && cd / && rm -rf /essentia/essentia /essentia/gaia | |
| ENV PYTHONPATH /usr/local/lib/python3/dist-packages | |
| WORKDIR /essentia |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment