summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorElizabeth Hunt <me@liz.coffee>2025-12-05 22:45:47 -0800
committerElizabeth Hunt <me@liz.coffee>2025-12-05 22:45:47 -0800
commit72fa9687912d065941931adf022419edf05d26a5 (patch)
treedef7a53d53e5d8134f6e8c3840d9df34da9949a5 /Dockerfile
parenta1585e0c26fe78d675c9ef2cace389fd4aeca9cc (diff)
downloadwwwgit-72fa9687912d065941931adf022419edf05d26a5.tar.gz
wwwgit-72fa9687912d065941931adf022419edf05d26a5.zip
Fix filters
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 6a79434..3b86162 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -49,6 +49,11 @@ RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
COPY --from=build_stage /var/www/html/cgit /var/www/html/cgit
+# Ensure filters are executable and use correct Python interpreter
+RUN chmod +x /var/www/html/cgit/filters/*.py 2>/dev/null || true && \
+ sed -i 's|#!/usr/bin/env python$|#!/usr/bin/env python3|g' /var/www/html/cgit/filters/*.py 2>/dev/null || true && \
+ sed -i 's|#!/usr/bin/python$|#!/usr/bin/python3|g' /var/www/html/cgit/filters/*.py 2>/dev/null || true
+
RUN mkdir -p /var/lib/git/repositories
RUN useradd -m -d /var/lib/git/repositories -s /usr/bin/git-shell code