mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
zopflicate deps in parallel
This commit is contained in:
parent
97a90f5f10
commit
f110d1254d
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
|
@ -47,6 +47,9 @@
|
|||
"[html]": {
|
||||
"editor.formatOnSave": false,
|
||||
},
|
||||
"files.associations": {
|
||||
"*.makefile": "makefile"
|
||||
},
|
||||
"editor.codeActionsOnSaveTimeout": 9001,
|
||||
"editor.formatOnSaveTimeout": 9001,
|
||||
//
|
||||
|
|
|
@ -40,13 +40,10 @@ RUN cd ogvjs-$ver_ogvjs \
|
|||
ogv-decoder-audio-vorbis-wasm.js \
|
||||
ogv-decoder-audio-vorbis-wasm.wasm \
|
||||
dynamicaudio.swf \
|
||||
/z/dist \
|
||||
/z/dist
|
||||
|
||||
# compress
|
||||
&& find /z/dist | \
|
||||
while IFS= read -r x; do \
|
||||
echo "compressing $x"; \
|
||||
pigz -11 -I 50 $x; \
|
||||
done
|
||||
# -I 1000 = 503587
|
||||
# -I 15 = 503650 (default)
|
||||
# -I 3 = 503994
|
||||
COPY zopfli.makefile /z/dist/Makefile
|
||||
RUN cd /z/dist \
|
||||
&& make -j$(nproc) \
|
||||
&& rm Makefile
|
||||
|
|
|
@ -16,6 +16,11 @@ all:
|
|||
|
||||
chown -R `stat $(self) -c %u:%g` $(vend)
|
||||
|
||||
purge:
|
||||
-docker kill `docker ps -q`
|
||||
-docker rm `docker ps -qa`
|
||||
-docker rmi `docker images -qa`
|
||||
|
||||
sh:
|
||||
@printf "\n\033[1;31mopening a shell in the most recently created docker image\033[0m\n"
|
||||
docker run --rm -it `docker images -aq | head -n 1` /bin/bash
|
||||
|
|
6
scripts/deps-docker/zopfli.makefile
Normal file
6
scripts/deps-docker/zopfli.makefile
Normal file
|
@ -0,0 +1,6 @@
|
|||
all: $(addsuffix .gz, $(wildcard *.*))
|
||||
|
||||
%.gz: %
|
||||
pigz -11 -J 34 -I 573 $<
|
||||
|
||||
# pigz -11 -J 34 -I 100 -F < $< > $@.first
|
Loading…
Reference in a new issue