.
This commit is contained in:
24
Dockerfile
24
Dockerfile
@ -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
|
||||
#############################
|
||||
# cpp‑httplib (header‑only) #
|
||||
#############################
|
||||
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 pre‑built 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"]
|
||||
|
Reference in New Issue
Block a user