Update Dockerfile
authormarcelveldt <marcelvanderveldt@MacBook-Silvia.local>
Wed, 16 Oct 2019 08:50:53 +0000 (10:50 +0200)
committermarcelveldt <marcelvanderveldt@MacBook-Silvia.local>
Wed, 16 Oct 2019 08:50:53 +0000 (10:50 +0200)
Dockerfile

index bb659b8389eefeb75e39929844a0b06b33ba8971..d1fa0854e7b89574f18044289db7913c47146897 100755 (executable)
@@ -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