smaller docker image
authormarcelveldt <marcelvanderveldt@MacBook-Silvia.local>
Wed, 16 Oct 2019 09:14:08 +0000 (11:14 +0200)
committermarcelveldt <marcelvanderveldt@MacBook-Silvia.local>
Wed, 16 Oct 2019 09:14:08 +0000 (11:14 +0200)
Dockerfile

index d1fa0854e7b89574f18044289db7913c47146897..4a66b8f5661beedec549ac37d7b4c8db1f9dd8c9 100755 (executable)
@@ -1,18 +1,15 @@
-FROM python:3.7-buster
+FROM python:3.7-slim
 
 COPY requirements.txt requirements.txt
-RUN buildDeps='libtag1-dev build-essential' && \
-       set -x && \
-       apt-get update && apt-get install -y --no-install-recommends \
+RUN apt-get update && apt-get install -y --no-install-recommends \
                # required packages
-               flac sox libsox-fmt-mp3 zip curl wget ffmpeg libsndfile1 libtag1 \
-               python3-numpy python3-scipy python3-matplotlib python3-taglib \
+               flac sox libsox-fmt-mp3 zip curl wget ffmpeg libsndfile1 libtag1v5 \
                # build packages
-               $buildDep && \
+               libtag1-dev build-essential && \
        # install required python packages with pip
        pip install -r requirements.txt && \
        # cleanup build packages
-       apt-get purge -y --auto-remove $buildDeps && \
+       apt-get purge -y --auto-remove libtag1-dev build-essential && \
        rm -rf /var/lib/apt/lists/*
 
 # copy app files