Skip to content

Commit 076e248

Browse files
sh file created in docker image instead of ADD
1 parent 50aa7f9 commit 076e248

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ ADD conf/apache.conf /etc/apache2/sites-available/000-default.conf
2222

2323
RUN 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\nmv /codeigniter4 /var/www/html\n/usr/sbin/apache2ctl -D FOREGROUND" > /startScript.sh
2630
RUN chmod +x /startScript.sh
2731

2832
RUN cd /var/www/html

0 commit comments

Comments
 (0)