Playing with static still
Some checks failed
Dropshell Test / Build_and_Test (push) Failing after 1m30s

This commit is contained in:
Your Name
2025-05-25 23:59:50 +12:00
parent 1b35f74bfe
commit 8ec4976cc0
2 changed files with 31 additions and 9 deletions

View File

@ -1,4 +1,4 @@
FROM alpine:latest
FROM --platform=$BUILDPLATFORM alpine:latest AS builder
# Install build dependencies
RUN apk add --no-cache \
@ -31,4 +31,6 @@ RUN cmake -G Ninja -B build_static -DCMAKE_BUILD_TYPE=Release \
RUN cmake --build build_static
# The resulting binary will be in build_static/dropshell
# Final stage that only contains the binary
FROM scratch AS dropshell
COPY --from=builder /build/build_static/dropshell /dropshell