1
0
Fork 0
mirror of https://forgejo.ellis.link/continuwuation/continuwuity.git synced 2025-07-30 19:58:30 +00:00

feat: Almost-functional musl builds on Alpine

Lots of fiddling, still can't get stuff to work

Next step is a debian builder copying the static libs from alpine
This commit is contained in:
Jade Ellis 2025-07-24 23:22:07 +01:00
parent 205506f206
commit 87be4d1a52
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2
3 changed files with 5 additions and 25 deletions

View file

@ -13,7 +13,7 @@ FROM --platform=$BUILDPLATFORM rust:${RUST_VERSION}-alpine${ALPINE_VERSION} AS t
RUN --mount=type=cache,target=/etc/apk/cache apk add \
build-base pkgconfig make jq bash \
curl git file \
llvm-dev clang clang-dev lld
llvm-dev clang clang-static lld
# Developer tool versions
@ -37,8 +37,7 @@ COPY --from=xx / /
ARG TARGETPLATFORM
# Install libraries linked by the binary
RUN --mount=type=cache,target=/etc/apk/cache xx-apk add musl-dev liburing-dev clang-dev
RUN --mount=type=cache,target=/etc/apk/cache xx-apk add musl-dev gcc g++ liburing-dev
# Set up Rust toolchain
WORKDIR /app