diff --git a/scripts/docker/Dockerfile.ac b/scripts/docker/Dockerfile.ac index b5df6f8b..2e5fa831 100644 --- a/scripts/docker/Dockerfile.ac +++ b/scripts/docker/Dockerfile.ac @@ -8,7 +8,7 @@ LABEL org.opencontainers.image.url="https://github.com/9001/copyparty" \ ENV XDG_CONFIG_HOME=/cfg RUN apk --no-cache add !pyc \ - tzdata wget \ + tzdata wget mimalloc2 mimalloc2-insecure \ py3-jinja2 py3-argon2-cffi py3-pyzmq py3-pillow \ ffmpeg diff --git a/scripts/docker/Dockerfile.dj b/scripts/docker/Dockerfile.dj index 5b7fc355..2f333176 100644 --- a/scripts/docker/Dockerfile.dj +++ b/scripts/docker/Dockerfile.dj @@ -11,7 +11,7 @@ COPY i/bin/mtag/install-deps.sh ./ COPY i/bin/mtag/audio-bpm.py /mtag/ COPY i/bin/mtag/audio-key.py /mtag/ RUN apk add -U !pyc \ - tzdata wget \ + tzdata wget mimalloc2 mimalloc2-insecure \ py3-jinja2 py3-argon2-cffi py3-pyzmq py3-pillow \ py3-pip py3-cffi \ ffmpeg \ diff --git a/scripts/docker/Dockerfile.im b/scripts/docker/Dockerfile.im index a24715ca..b8036bca 100644 --- a/scripts/docker/Dockerfile.im +++ b/scripts/docker/Dockerfile.im @@ -8,7 +8,7 @@ LABEL org.opencontainers.image.url="https://github.com/9001/copyparty" \ ENV XDG_CONFIG_HOME=/cfg RUN apk --no-cache add !pyc \ - tzdata wget \ + tzdata wget mimalloc2 mimalloc2-insecure \ py3-jinja2 py3-argon2-cffi py3-pillow py3-mutagen COPY i/dist/copyparty-sfx.py innvikler.sh ./ diff --git a/scripts/docker/Dockerfile.iv b/scripts/docker/Dockerfile.iv index 48264373..8889e716 100644 --- a/scripts/docker/Dockerfile.iv +++ b/scripts/docker/Dockerfile.iv @@ -8,7 +8,7 @@ LABEL org.opencontainers.image.url="https://github.com/9001/copyparty" \ ENV XDG_CONFIG_HOME=/cfg RUN apk add -U !pyc \ - tzdata wget \ + tzdata wget mimalloc2 mimalloc2-insecure \ py3-jinja2 py3-argon2-cffi py3-pyzmq py3-pillow \ py3-pip py3-cffi \ ffmpeg \ diff --git a/scripts/docker/README.md b/scripts/docker/README.md index 6b838c43..e7ca2a7b 100644 --- a/scripts/docker/README.md +++ b/scripts/docker/README.md @@ -101,6 +101,14 @@ the following advice is best-effort and not guaranteed to be entirely correct * copyparty will generally create a `.hist` folder at the top of each volume, which contains the filesystem index, thumbnails and such. For performance reasons, but also just to keep things tidy, it might be convenient to store these inside the config folder instead. Add the line `hist: /cfg/hists/` inside the `[global]` section of your `copyparty.conf` to do this +* if you want more performance, and you're OK with doubling the RAM usage, then consider enabling mimalloc **(maybe buggy)** with one of these: + + * `-e LD_PRELOAD=/usr/lib/libmimalloc-secure.so.2` makes download-as-zip **3x** as fast, filesystem-indexing **1.5x** as fast, etc. + + * `-e LD_PRELOAD=/usr/lib/libmimalloc-insecure.so.2` adds another 10% speed but makes it easier to exploit future vulnerabilities + + * complete example: `podman run --rm -it -p 3923:3923 -v "$PWD:/w:z" -e LD_PRELOAD=/usr/lib/libmimalloc-secure.so.2 copyparty/ac -v /w::r` + ## enabling the ftp server