Private
Public Access
1
0

Improve image compression in Dockerfile by increasing PNG optimization level and enhancing JPEG compression settings with additional options.
Some checks failed
Dynamic Branch Deploy / build-and-deploy (push) Has been cancelled

This commit is contained in:
Sebastian Unterschütz
2026-01-05 21:35:20 +01:00
parent 9c96151d36
commit c8c43a110a

View File

@@ -27,8 +27,8 @@ RUN chmod +x scripts/cache-version.sh && \
# Bilder komprimieren (verlustfrei für PNG, leichter Verlust für JPG)
RUN echo "🗜️ Komprimiere Bilder..." && \
find cmd/client/web -type f -name "*.png" -exec optipng -o2 -strip all {} \; && \
find cmd/client/web -type f \( -name "*.jpg" -o -name "*.jpeg" \) -exec jpegoptim --strip-all -m85 {} \; && \
find cmd/client/web -type f -name "*.png" -exec optipng -o7 -strip all {} \; && \
find cmd/client/web -type f \( -name "*.jpg" -o -name "*.jpeg" \) -exec jpegoptim -m85 --strip-all --all-progressive --preserve --totals {} \; && \
echo "✅ Bildkompression abgeschlossen"
# Server binary bauen