diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-07-31 11:05:15 +0300 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-07-31 11:05:15 +0300 |
| commit | 18becdc29e9898dc33806d072ed45c7ca9d45de2 (patch) | |
| tree | 40b76b29a8ef0b949aa83ac5e7874a82e31aae38 | |
| parent | 617b450d0131e7925bb407fc7f4375c10fac426b (diff) | |
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 <donatas@opensourcerouting.org>
| -rw-r--r-- | docker/alpine/Dockerfile | 4 |
1 files 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 |
