From 18becdc29e9898dc33806d072ed45c7ca9d45de2 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Mon, 31 Jul 2023 11:05:15 +0300 Subject: [PATCH] docker: Install the apk packages regardless of the platform It was hardcoded to x86_64, but we build Alpine images for more platforms, let's be dynamical here. Signed-off-by: Donatas Abraitis --- docker/alpine/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/alpine/Dockerfile b/docker/alpine/Dockerfile index d1c3060069..98e8407498 100644 --- a/docker/alpine/Dockerfile +++ b/docker/alpine/Dockerfile @@ -28,7 +28,7 @@ FROM alpine:3.18 as source-builder RUN mkdir -p /src/alpine /pkgs/apk COPY alpine/APKBUILD.in /src/alpine COPY --from=alpine-apk-builder-libyang /pkgs/apk/src /pkgs/apk -RUN cd /pkgs/apk/x86_64 && apk add --allow-untrusted *.apk +RUN cd /pkgs/apk && apk add --allow-untrusted */*.apk RUN source /src/alpine/APKBUILD.in \ && apk add \ --no-cache \ @@ -48,7 +48,7 @@ RUN cd /src \ FROM alpine-builder as alpine-apk-builder COPY --from=source-builder /src/frr-*.tar.gz /src/alpine/* /dist/ COPY --from=alpine-apk-builder-libyang /pkgs/apk/src /pkgs/apk -RUN cd /pkgs/apk/x86_64 && apk add --allow-untrusted *.apk +RUN cd /pkgs/apk && apk add --allow-untrusted */*.apk RUN find /pkgs/apk -type f -name APKINDEX.tar.gz -delete RUN chown -R builder /dist /pkgs USER builder -- 2.39.5