Skip to content

Commit 2718b82

Browse files
committed
ADD RUN a2enmod rewrite
UPDATE php to version 7.2.30 UPDATE mysql to version 8.0.20
1 parent 5a8086d commit 2718b82

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:7.2.26-apache
1+
FROM php:7.2.30-apache
22

33
MAINTAINER Antonio Sanna <[email protected]>
44

@@ -20,6 +20,8 @@ RUN composer self-update
2020

2121
ADD conf/apache.conf /etc/apache2/sites-available/000-default.conf
2222

23+
RUN a2enmod rewrite
24+
2325
ADD startScript.sh /startScript.sh
2426
RUN chmod +x /startScript.sh
2527

@@ -28,13 +30,12 @@ RUN cd /var/www/html
2830
RUN composer create-project codeigniter4/appstarter codeigniter4 v4.0.3
2931
RUN chmod -R 0777 /var/www/html/codeigniter4/writable
3032

31-
RUN mv /var/www/html/codeigniter4 /var/tmp/
33+
RUN mv codeigniter4 /
3234

3335
RUN apt-get clean \
3436
&& rm -r /var/lib/apt/lists/*
3537

3638
EXPOSE 80
3739
VOLUME ["/var/www/html", "/var/log/apache2", "/etc/apache2"]
3840

39-
CMD ["bash", "/startScript.sh"]
40-
41+
CMD ["bash", "/startScript.sh"]

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ services:
2222
#--------------------------------------------------------------------------#
2323
#--------------------------------------------------------------------------#
2424
codeigniter4_mysql:
25-
image: mysql:8.0.19
25+
image: mysql:8.0.20
2626
container_name: 'codeigniter4_mysql'
2727
ports:
2828
- 3306:3306

startScript.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#!/bin/bash
2-
mv /var/tmp/codeigniter4 /var/www/html/
3-
2+
mv /codeigniter4 /var/www/html
43
/usr/sbin/apache2ctl -D FOREGROUND

0 commit comments

Comments
 (0)