Skip to content

Commit 5a42d99

Browse files
committed
Update Apache ports settings.
1 parent eddc5cd commit 5a42d99

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ RUN apt-get update && \
1919
rm -rf /var/lib/apt/lists/* # Clean up apt cache to keep image small
2020

2121
# --- Apache Port Configuration ---
22-
# The official DokuWiki image's Apache typically listens on port 80.
23-
# To align with your Helm charts and previous Dockerfile's EXPOSE 8080,
24-
# we need to modify Apache's configuration to listen on 8080.
25-
RUN sed -i 's/^Listen 80/Listen 8080/' /etc/apache2/ports.conf && \
26-
sed -i 's/<VirtualHost \*:80>/<VirtualHost \*:8080>/' /etc/apache2/sites-available/000-default.conf
22+
# Replace ports.conf entirely to ensure Apache listens on port 8080
23+
RUN echo "Listen 8080" > /etc/apache2/ports.conf && \
24+
sed -i 's/<VirtualHost *:80>/<VirtualHost *:8080>/' /etc/apache2/sites-available/000-default.conf
25+
2726

2827
# --- Healthcheck File ---
2928
# Based on your previous Dockerfile and Helm probe configurations,

0 commit comments

Comments
 (0)