summaryrefslogtreecommitdiffstats
path: root/2.4/Dockerfile
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-08-14 03:42:08 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-08-14 03:42:08 +0200
commit5f519300fa70f938f9c2bb75ed71450839ed0073 (patch)
treed7bfe20476feb4958326a9d12ec2dcaeae23cc69 /2.4/Dockerfile
parent52c0571557fac5a99ea8e35563be1c1f6e4fc52c (diff)
downloadapache-5f519300fa70f938f9c2bb75ed71450839ed0073.tar.gz
apache-5f519300fa70f938f9c2bb75ed71450839ed0073.tar.bz2
apache-5f519300fa70f938f9c2bb75ed71450839ed0073.tar.xz
apache-5f519300fa70f938f9c2bb75ed71450839ed0073.zip
Fix port in Dockerfile instead of entrypoint.sh
Diffstat (limited to '2.4/Dockerfile')
-rw-r--r--2.4/Dockerfile8
1 files changed, 5 insertions, 3 deletions
diff --git a/2.4/Dockerfile b/2.4/Dockerfile
index 98e05e9..d907b76 100644
--- a/2.4/Dockerfile
+++ b/2.4/Dockerfile
@@ -15,6 +15,8 @@ RUN set -ex; \
touch "/var/lib/dav/DavLock"; \
chown -R www-data:www-data "/var/lib/dav"; \
\
+ # Configure port
+ sed -i -e "s|Listen .*|Listen 8080|" "conf/httpd.conf"; \
# Enable DAV modules.
for i in dav dav_fs; do \
sed -i -e "/^#LoadModule ${i}_module.*/s/^#//" "conf/httpd.conf"; \
@@ -31,9 +33,9 @@ RUN set -ex; \
done; \
\
# Run httpd as "www-data" (instead of "daemon").
- for i in User Group; do \
- sed -i -e "s|^$i .*|$i www-data|" "conf/httpd.conf"; \
- done; \
+ #for i in User Group; do \
+ # sed -i -e "s|^$i .*|$i www-data|" "conf/httpd.conf"; \
+ #done; \
\
# Include enabled configs and sites.
printf '%s\n' "Include conf/conf-enabled/*.conf" \