Skip to content

Commit

Permalink
Build newer ninja for musl docker
Browse files Browse the repository at this point in the history
  • Loading branch information
jameseh96 committed Oct 16, 2024
1 parent 5e203bd commit ec3ca0a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docker/musl_Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
ARG ARCH=x86_64
FROM quay.io/pypa/musllinux_1_1_${ARCH}:latest

RUN apk update && apk add build-base cmake ninja zip unzip curl git ninja
RUN apk update && apk add build-base cmake zip unzip curl git

# ninja available in apk is too old, build from source.
RUN git clone https://github.com/ninja-build/ninja.git && cd ninja && git checkout v1.12.1 && mkdir ./build && cd build && cmake .. && cmake --build .
ENV PATH="/ninja/build:$PATH"

RUN git clone https://github.com/microsoft/vcpkg.git
RUN cd vcpkg && git checkout 2024.09.30
RUN ./vcpkg/bootstrap-vcpkg.sh -disableMetrics
ENV VCPKG_ROOT=/vcpkg
ENV PATH="$PATH:$VCPKG_ROOT"

0 comments on commit ec3ca0a

Please sign in to comment.