Block a user
audio-classifier-backend (dev-34fcbe1)
Installation
docker pull git.benoitsz.com/benoit/audio-classifier-backend:dev-34fcbe1sha256:bf77ee32f52aa78a6b608a12121bbe4b0acb85199b97295e79650ac6483f4f00
Images
| Digest | OS / Arch | Size |
|---|---|---|
| 3def383bd3 | linux/amd64 | 970 MiB |
Image Layers ( linux/amd64)
| # debian.sh --arch 'amd64' out/ 'trixie' '@1760918400' |
| ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| ENV LANG=C.UTF-8 |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates netbase tzdata ; apt-get dist-clean # buildkit |
| ENV GPG_KEY=E3FF2839C048B25C084DEBE9B26995E310250568 |
| ENV PYTHON_VERSION=3.9.25 |
| ENV PYTHON_SHA256=00e07d7c0f2f0cc002432d1ee84d2a40dae404a99303e3f97701c10966c91834 |
| RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev gcc gnupg libbluetooth-dev libbz2-dev libc6-dev libdb-dev libffi-dev libgdbm-dev liblzma-dev libncursesw5-dev libreadline-dev libsqlite3-dev libssl-dev make tk-dev uuid-dev wget xz-utils zlib1g-dev ; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; echo "$PYTHON_SHA256 *python.tar.xz" | sha256sum -c -; wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc"; GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$GPG_KEY"; gpg --batch --verify python.tar.xz.asc python.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME" python.tar.xz.asc; mkdir -p /usr/src/python; tar --extract --directory /usr/src/python --strip-components=1 --file python.tar.xz; rm python.tar.xz; cd /usr/src/python; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --enable-loadable-sqlite-extensions --enable-optimizations --enable-option-checking=fatal --enable-shared --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; LDFLAGS="${LDFLAGS:--Wl},--strip-all"; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:--Wl},-rpath='\$\$ORIGIN/../lib'" python ; make install; cd /; rm -rf /usr/src/python; find /usr/local -depth \( \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) \) \) -exec rm -rf '{}' + ; ldconfig; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 install --disable-pip-version-check --no-cache-dir --no-compile 'setuptools==79.0.1' 'wheel<0.46' ; pip3 --version # buildkit |
| RUN /bin/sh -c set -eux; for src in idle3 pip3 pydoc3 python3 python3-config; do dst="$(echo "$src" | tr -d 3)"; [ -s "/usr/local/bin/$src" ]; [ ! -e "/usr/local/bin/$dst" ]; ln -svT "$src" "/usr/local/bin/$dst"; done # buildkit |
| CMD ["python3"] |
| RUN /bin/sh -c apt-get update && apt-get install -y ffmpeg libsndfile1 libsndfile1-dev gcc g++ gfortran libopenblas-dev liblapack-dev pkg-config curl build-essential libyaml-dev libfftw3-dev libavcodec-dev libavformat-dev libavutil-dev libswresample-dev libsamplerate0-dev libtag1-dev libchromaprint-dev && rm -rf /var/lib/apt/lists/* # buildkit |
| WORKDIR /app |
| RUN /bin/sh -c pip install --no-cache-dir --upgrade pip setuptools wheel # buildkit |
| COPY backend/requirements.txt . # buildkit |
| RUN /bin/sh -c pip install --no-cache-dir numpy==1.24.3 # buildkit |
| RUN /bin/sh -c pip install --no-cache-dir scipy==1.11.4 # buildkit |
| RUN /bin/sh -c pip install --no-cache-dir essentia-tensorflow # buildkit |
| RUN /bin/sh -c pip install --no-cache-dir -r requirements.txt # buildkit |
| COPY backend/src/ ./src/ # buildkit |
| COPY backend/alembic.ini . # buildkit |
| COPY backend/models/ ./models/ # buildkit |
| RUN /bin/sh -c ls -lh /app/models # buildkit |
| EXPOSE [8000/tcp] |
| CMD ["/bin/sh" "-c" "alembic upgrade head && uvicorn src.api.main:app --host 0.0.0.0 --port 8000"] |
Labels
| Key | Value |
|---|---|
| org.opencontainers.image.created | 2025-12-26T18:35:06.254Z |
| org.opencontainers.image.description | |
| org.opencontainers.image.licenses | |
| org.opencontainers.image.revision | 34fcbe1223315435a09ca7ca733f141544c08ce8 |
| org.opencontainers.image.source | https://git.benoitsz.com/benoit/Audio-Classifier |
| org.opencontainers.image.title | Audio-Classifier |
| org.opencontainers.image.url | https://git.benoitsz.com/benoit/Audio-Classifier |
| org.opencontainers.image.version | dev |
Details
Versions (11)
View all
dev-6a55de3
2025-12-26
dev-34fcbe1
2025-12-26
dev-f05958e
2025-12-26
dev-0fbfb6f
2025-12-26
dev-16b3fda
2025-12-26