Skip to content

Commit bc51f9c

Browse files
authored
Merge pull request #4 from tansherjun/master
Changes so that it works on windows
2 parents 50aa7f9 + fb6a8b4 commit bc51f9c

2 files changed

Lines changed: 8 additions & 2 deletions

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

docker-compose.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)