diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-02-08 22:36:25 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-02-08 23:03:24 +0100 |
| commit | 6b1aa052713a8385b9678d9ae880b99a62e291a7 (patch) | |
| tree | 152abd7230313c9690729d1b1b5584bc32f99f0d | |
| parent | 7613f8a96aec77d02827c82374795e635bd74f54 (diff) | |
Add cJSON-1.7.19
| -rw-r--r-- | cJSON/1.7.19/Dockerfile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/cJSON/1.7.19/Dockerfile b/cJSON/1.7.19/Dockerfile new file mode 100644 index 0000000..30e11fa --- /dev/null +++ b/cJSON/1.7.19/Dockerfile @@ -0,0 +1,20 @@ +FROM alpine as base +ARG PREFIX=/usr/local +ARG DESTDIR=/opt/spm/cjson-1.7.19 +RUN apk update && apk add \ + git \ + cmake \ + make \ + gcc \ + musl-dev +RUN git clone --depth 1 -b v1.7.19 https://github.com/DaveGamble/cJSON +WORKDIR /cJSON +RUN cmake -B build \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_SHARED_LIBS=OFF \ + -DCMAKE_C_FLAGS="-ffunction-sections -fdata-sections" +RUN cmake --build build/ --parallel $(nproc --all) +WORKDIR build +RUN make install DESTDIR=$DESTDIR +FROM scratch +COPY --from=base /opt/spm/cjson-1.7.19/usr/local /opt/spm/cjson-1.7.19 |
