feat: multi platform support

- use build platform argument
Signed-off-by: Lakshya Singh <lakshay.singh1108@gmail.com>
This commit is contained in:
Lakshya Singh
2023-09-19 01:15:04 +05:30
parent f8ac3be2d8
commit 6ba96d6798
2 changed files with 18 additions and 10 deletions

View File

@@ -1,4 +1,7 @@
FROM alpine:3.16 as builder
# build stage for core lightning and clboss
FROM --platform=${TARGETPLATFORM:-${BUILDPLATFORM}} alpine:3.18 as builder
ARG TARGETPLATFORM
WORKDIR /build
@@ -45,7 +48,9 @@ RUN git clone -b 2023-09-gnuc-version --recurse-submodules https://github.com/ks
make -j $(nproc) && \
make install
FROM alpine:3.16 as runner
# final stage with runtime dependencies and pkgs
FROM --platform=${TARGETPLATFORM:-${BUILDPLATFORM}} alpine:3.18 as runner
LABEL maintainer.0="Lakshya Singh (@king-11)" \
maintainer.1="Dev Random (@devrandom01)"