use new way to get architecture

This commit is contained in:
Sebastian Hugentobler 2023-12-12 23:43:00 +01:00
parent 7d2cc36d5f
commit cd164794ca
Signed by: shu
GPG key ID: BB32CF3CA052C2F0
2 changed files with 3 additions and 7 deletions

View file

@ -1,8 +1,6 @@
FROM docker.io/alpine:3.19 AS builder
LABEL maintainer="Sebastian Hugentobler <sebastian@vanwa.ch>"
ARG TARGET_ARCH=x86_64
ENV S6_OVERLAY_VERSION=v3.1.6.2
RUN apk --no-cache add \
@ -16,8 +14,8 @@ RUN git clone https://github.com/just-containers/s6-overlay.git /src
WORKDIR /src
RUN git checkout "$S6_OVERLAY_VERSION"
RUN make ARCH=$TARGET_ARCH-linux-musl -j4
RUN mv /src/output/rootfs-overlay-${TARGET_ARCH}-linux-musl /src/output/rootfs-overlay-arch
RUN make ARCH=$(arch)-linux-musl -j4
RUN mv /src/output/rootfs-overlay-$(arch)-linux-musl /src/output/rootfs-overlay-arch
FROM docker.io/alpine:3.19