mirror of
https://github.com/php/frankenphp.git
synced 2026-03-24 00:52:11 +01:00
use mimalloc in alpine docker too
This commit is contained in:
@@ -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 && \
|
||||
|
||||
Reference in New Issue
Block a user