switch to debian
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 9 Mar 2023 21:48:18 +0000 (22:48 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 9 Mar 2023 21:48:18 +0000 (22:48 +0100)
Dockerfile

index ea6bb57d5adbdc1ebb6bc0eb84d9ff5e0bb26a0d..5110f8d52643a4d4bb7bf535927d9dd9d1622be7 100644 (file)
@@ -8,36 +8,21 @@ ARG PYTHON_VERSION="3.11"
 # Build Wheels                                                      #
 #                                                                   #
 #####################################################################
-FROM python:${PYTHON_VERSION}-alpine3.16 as wheels-builder
+FROM python:${PYTHON_VERSION}-slim as wheels-builder
 ARG TARGETPLATFORM
 
 # Install buildtime packages
 RUN set -x \
-    && apk add --no-cache \
-        alpine-sdk \
-        ca-certificates \
-        openssh-client \
-        patchelf \
-        build-base \
-        cmake \
-        git \
-        gcc \
-        g++ \
-        musl-dev \
-        linux-headers \
-        autoconf \
-        automake \
-        libffi \
+    && apt-get update \
+    && apt-get install -y --no-install-recommends \
+        build-essential \
         libffi-dev \
-        openssl-dev \
-        pkgconfig
+        cargo
 
 WORKDIR /wheels
 COPY requirements_all.txt .
 
 
-ENV PATH="/root/.cargo/bin:${PATH}"
-
 # build python wheels for all dependencies
 RUN set -x \
     && pip install --upgrade pip \
@@ -55,20 +40,20 @@ RUN python3 -m build --wheel --outdir /wheels --skip-dependency-check
 # Final Image                                                       #
 #                                                                   #
 #####################################################################
-FROM python:${PYTHON_VERSION}-alpine3.16 AS final-build
+FROM python:${PYTHON_VERSION}-slim AS final-build
 WORKDIR /app
 
 RUN set -x \
-    && apk add --no-cache \
-        ca-certificates \
+    && apt-get update \
+    && apt-get install -y --no-install-recommends \
         curl \
         git \
-        jq \
-        openssl \
+        wget \
         tzdata \
         ffmpeg \
-        ffmpeg-libs \
-        libjpeg-turbo \
+        libsox-fmt-all \
+        libsox3 \
+        sox \
     # cleanup
     && rm -rf /tmp/* \
     && rm -rf /var/lib/apt/lists/*