Fixes requirement for using root in docker container to use port 80

This commit is contained in:
magikmw
2022-07-17 20:28:06 +02:00
parent 4c2b6f5d53
commit 4a5bb13603
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -1,6 +1,10 @@
FROM php:5-apache
EXPOSE 80
RUN sed -i 's/Listen 80/Listen ${PORT}/' /etc/apache2/ports.conf
ENV PORT=8080
EXPOSE 8080
WORKDIR /var/www/html