This commit is contained in:
j842
2025-05-26 14:06:23 +12:00
parent 16e93ef078
commit caf8c36a0e
49 changed files with 1642 additions and 11 deletions

View File

@ -21,7 +21,13 @@ RUN apk add --no-cache \
openssl-dev \
zlib-static \
zlib-dev \
bash
linux-headers \
bash \
ccache \
mold
# Configure mold as the default linker
ENV LD=mold
########################################
# nlohmann/json (compiled static .a) #
@ -38,8 +44,7 @@ RUN git clone --depth 1 --branch v${JSON_VERSION} https://github.com/nlohmann/js
#############################
# cpphttplib (headeronly) #
#############################
ARG HTTPLIB_VERSION=v0.15.4
RUN wget -q https://raw.githubusercontent.com/yhirose/cpp-httplib/${HTTPLIB_VERSION}/httplib.h \
RUN wget -q https://raw.githubusercontent.com/yhirose/cpp-httplib/master/httplib.h \
-O /usr/local/include/httplib.h
##################################
@ -83,7 +88,16 @@ RUN apk add --no-cache \
ninja \
git \
openssl-dev \
zlib-static
zlib-static \
bash \
wget \
curl \
linux-headers \
ccache \
mold
# Configure mold as the default linker
ENV LD=mold
# Copy prebuilt static libs + headers
COPY --from=builder /usr/local /usr/local
@ -94,4 +108,4 @@ ENV CFLAGS="-static -O2" \
WORKDIR /workspace
ENTRYPOINT ["/bin/sh"]
ENTRYPOINT ["/bin/bash"]