use mimalloc in alpine docker too

This commit is contained in:
henderkes
2026-03-08 12:49:22 +07:00
parent 8cb88a0bb8
commit 763ec036e1

View File

@@ -138,9 +138,11 @@ ENV GODEBUG=cgocheck=0
# copy watcher shared library (libgcc and libstdc++ are needed for the watcher)
COPY --from=builder /usr/local/lib/libwatcher* /usr/local/lib/
RUN apk add --no-cache libstdc++ && \
RUN apk add --no-cache libstdc++ mimalloc2 && \
ldconfig /usr/local/lib
ENV LD_PRELOAD=/usr/lib/libmimalloc.so.2
COPY --from=builder /usr/local/bin/frankenphp /usr/local/bin/frankenphp
RUN setcap cap_net_bind_service=+ep /usr/local/bin/frankenphp && \
frankenphp version && \