alpine 3.16 instead of 3.17
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 9 Mar 2023 21:24:41 +0000 (22:24 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 9 Mar 2023 21:24:41 +0000 (22:24 +0100)
Dockerfile

index f7bead2d7ea229db302f5918372ec64d2a9a16ef..ea6bb57d5adbdc1ebb6bc0eb84d9ff5e0bb26a0d 100644 (file)
@@ -8,7 +8,7 @@ ARG PYTHON_VERSION="3.11"
 # Build Wheels                                                      #
 #                                                                   #
 #####################################################################
-FROM python:${PYTHON_VERSION}-alpine as wheels-builder
+FROM python:${PYTHON_VERSION}-alpine3.16 as wheels-builder
 ARG TARGETPLATFORM
 
 # Install buildtime packages
@@ -30,13 +30,14 @@ RUN set -x \
         libffi \
         libffi-dev \
         openssl-dev \
-        pkgconfig \
-        rust \
-        cargo
+        pkgconfig
 
 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 \
@@ -54,7 +55,7 @@ RUN python3 -m build --wheel --outdir /wheels --skip-dependency-check
 # Final Image                                                       #
 #                                                                   #
 #####################################################################
-FROM python:${PYTHON_VERSION}-alpine AS final-build
+FROM python:${PYTHON_VERSION}-alpine3.16 AS final-build
 WORKDIR /app
 
 RUN set -x \