chartManD commited on
Commit
07b5682
·
1 Parent(s): 8186032

se cambia el purto de 80 a 8080

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -15,8 +15,11 @@ FROM php:8.0-apache
15
 
16
  RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
17
 
 
 
 
18
  COPY . /var/www/html/
19
 
20
- EXPOSE 80
21
 
22
  CMD ["apache2-foreground"]
 
15
 
16
  RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
17
 
18
+ RUN sed -i 's/Listen 80/Listen 8080/' /etc/apache2/ports.conf
19
+ RUN sed -i 's/:80/:8080/g' /etc/apache2/sites-available/000-default.conf
20
+
21
  COPY . /var/www/html/
22
 
23
+ EXPOSE 8080
24
 
25
  CMD ["apache2-foreground"]