summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorElizabeth Hunt <me@liz.coffee>2025-12-05 22:50:42 -0800
committerElizabeth Hunt <me@liz.coffee>2025-12-05 22:50:42 -0800
commitea16389b369ce782e7e722e0b2c4e48273210b12 (patch)
treec1d4274da0c46cfe81456300c6590b41477df3af /Dockerfile
parent72fa9687912d065941931adf022419edf05d26a5 (diff)
downloadwwwgit-main.tar.gz
wwwgit-main.zip
Add READMEmain
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 3b86162..3f2f33a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -42,6 +42,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
openssh-server \
locales \
+ highlight \
&& rm -rf /var/lib/apt/lists/*
# Generate locale to fix git locale warnings
@@ -49,8 +50,8 @@ 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 && \
+# Ensure filters are executable and use correct interpreters
+RUN chmod +x /var/www/html/cgit/filters/* 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