From c0765b99df1367e3c72180f1dfeaa855933550ed Mon Sep 17 00:00:00 2001 From: Stanislav Bebej Date: Tue, 30 Jan 2024 13:54:52 +0100 Subject: [PATCH] fix: sort sitemap contents --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7417d46..e4f3a83 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,7 @@ RUN mkdir /ejks \ && for i in $(cat piesen.list); do php-cgi -q jks.php id=$i | minify --type html | tr -d '\n' > /ejks/$i.html; done # Build sitemap.txt -RUN find /ejks -type f -name '*.html' | sed 's#/ejks#https://ejks.sk#g' > /ejks/sitemap.txt +RUN find /ejks -type f -name '*.html' | sed 's#/ejks#https://ejks.sk#g' | sort -u > /ejks/sitemap.txt # Runtime container FROM nginx:1.25.3-alpine-slim