From 78cf329f49882a300ad7ff0d9c470c93e2065e80 Mon Sep 17 00:00:00 2001 From: marcelveldt Date: Wed, 16 Oct 2019 10:50:53 +0200 Subject: [PATCH] Update Dockerfile --- Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index bb659b83..d1fa0854 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,18 @@ FROM python:3.7-buster COPY requirements.txt requirements.txt -RUN apt-get update && apt-get install -y --no-install-recommends \ +RUN buildDeps='libtag1-dev build-essential' && \ + set -x && \ + apt-get update && apt-get install -y --no-install-recommends \ # required packages - flac sox libsox-fmt-mp3 zip curl wget ffmpeg libsndfile1 \ + flac sox libsox-fmt-mp3 zip curl wget ffmpeg libsndfile1 libtag1 \ python3-numpy python3-scipy python3-matplotlib python3-taglib \ # build packages - libtag1-dev build-essential && \ + $buildDep && \ # install required python packages with pip pip install -r requirements.txt && \ # cleanup build packages - apt-get remove --purge -y build-essential libtag1-dev && \ - apt-get autoremove -y && \ + apt-get purge -y --auto-remove $buildDeps && \ rm -rf /var/lib/apt/lists/* # copy app files -- 2.34.1