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
Some checks failed
Dynamic Branch Deploy / build-and-deploy (push) Has been cancelled
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user