File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,11 @@ ADD conf/apache.conf /etc/apache2/sites-available/000-default.conf
2222
2323RUN a2enmod rewrite
2424
25- ADD startScript.sh /startScript.sh
25+ # The printf command below creates the script /startScript.sh with the following 3 lines.
26+ # #!/bin/bash
27+ # mv /codeigniter4 /var/www/html
28+ # /usr/sbin/apache2ctl -D FOREGROUND
29+ RUN printf "#!/bin/bash\n mv /codeigniter4 /var/www/html\n /usr/sbin/apache2ctl -D FOREGROUND" > /startScript.sh
2630RUN chmod +x /startScript.sh
2731
2832RUN cd /var/www/html
Original file line number Diff line number Diff line change @@ -7,8 +7,10 @@ services:
77# --------------------------------------------------------------------------#
88# --------------------------------------------------------------------------#
99 codeigniter4 :
10- image : atsanna/codeigniter4:latest
10+ image : codeigniter:4.0.3
1111 container_name : ' codeigniter4'
12+ build :
13+ context : ./
1214 ports :
1315 - 80:80
1416 links :
You can’t perform that action at this time.
0 commit comments