Skip to content

Commit 49532b6

Browse files
committed
fix: update frontend artifact pruning to include additional file types
1 parent 510a2b7 commit 49532b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,13 @@ services:
194194
sh -c 'set -eu
195195
echo "Existing volume contents BEFORE prune (/frontend-volume)";
196196
if [ -d /frontend-volume ]; then find /frontend-volume -maxdepth 2 -type f -print || true; else echo "(volume empty or not yet created)"; fi;
197-
echo "Pruning old frontend artifacts (assets/, *.html, *.svg, *.css, *.js)";
197+
echo "Pruning old frontend artifacts (assets/, *.html, *.svg, *.css, *.js, *.ico, *.png)";
198198
rm -rf /frontend-volume/assets || true;
199-
find /frontend-volume -maxdepth 1 -type f \( -name "*.html" -o -name "*.svg" -o -name "*.css" -o -name "*.js" \) -exec rm -f {} + || true;
199+
find /frontend-volume -maxdepth 1 -type f \( -name "*.html" -o -name "*.svg" -o -name "*.css" -o -name "*.js" -o -name "*.ico" -o -name "*.png" \) -exec rm -f {} + || true;
200200
echo "Copying updated assets directory";
201201
if [ -d /webapp/assets ]; then cp -a /webapp/assets /frontend-volume/; fi;
202-
echo "Copying root-level *.html / *.svg / *.css / *.js";
203-
find /webapp -maxdepth 1 -type f \( -name "*.html" -o -name "*.svg" -o -name "*.css" -o -name "*.js" \) -exec cp -f {} /frontend-volume/ \+;
202+
echo "Copying root-level files (*.html, *.svg, *.css, *.js, *.ico, *.png)";
203+
find /webapp -maxdepth 1 -type f \( -name "*.html" -o -name "*.svg" -o -name "*.css" -o -name "*.js" -o -name "*.ico" -o -name "*.png" \) -exec cp -f {} /frontend-volume/ \+;
204204
echo "Final volume contents AFTER copy";
205205
find /frontend-volume -maxdepth 2 -type f -print'
206206
volumes:

0 commit comments

Comments
 (0)