Skip to content

Commit

Permalink
fix PORTS in php image
Browse files Browse the repository at this point in the history
  • Loading branch information
mms-gianni committed Apr 11, 2023
1 parent 61c31c4 commit d141701
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packs/php-laravel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV PORT=8080 \
PORT_HTTPS=8443 \
ABSOLUTE_APACHE_DOCUMENT_ROOT=/app/public

RUN sudo sed -i 's/80/\${PORT}/g' /etc/apache2/ports.conf && \
sudo sed -i 's/443/\${PORT_HTTPS}/g' /etc/apache2/ports.conf && \
sudo sed -i 's/80/\${PORT}/g' /etc/apache2/sites-available/000-default.conf && \
sudo sed -i 's/443/\${PORT_HTTPS}/g' /etc/apache2/sites-available/default-ssl.conf
RUN sudo sed -i 's/80/8080/g' /etc/apache2/ports.conf && \
sudo sed -i 's/80/8080/g' /etc/apache2/sites-available/000-default.conf && \
sudo sed -i 's/443/8443/g' /etc/apache2/ports.conf && \
sudo sed -i 's/443/8443/g' /etc/apache2/sites-available/default-ssl.conf

0 comments on commit d141701

Please sign in to comment.