File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,10 @@ RUN apt-get update && \
19
19
rm -rf /var/lib/apt/lists/* # Clean up apt cache to keep image small
20
20
21
21
# --- 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
+
27
26
28
27
# --- Healthcheck File ---
29
28
# Based on your previous Dockerfile and Helm probe configurations,
You can’t perform that action at this time.
0 commit comments