Skip to content

Commit f523b56

Browse files
authored
Add files via upload
Upgrade framework to CodeIgniter v4.0.4
1 parent bc51f9c commit f523b56

2 files changed

Lines changed: 42 additions & 48 deletions

File tree

Dockerfile

Lines changed: 40 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,41 @@
1-
FROM php:7.3-apache
2-
3-
LABEL maintainer="Antonio Sanna <[email protected]>"
4-
5-
RUN apt-get update
6-
RUN apt-get upgrade -y
7-
8-
RUN apt-get install --fix-missing -y libpq-dev
9-
RUN apt-get install --no-install-recommends -y libpq-dev
10-
RUN apt-get install -y libxml2-dev libbz2-dev zlib1g-dev
11-
RUN apt-get -y install libsqlite3-dev libsqlite3-0 mariadb-client curl exif ftp
12-
RUN docker-php-ext-install intl
13-
RUN apt-get -y install --fix-missing zip unzip
14-
15-
# Composer
16-
RUN curl -sS https://getcomposer.org/installer | php
17-
RUN mv composer.phar /usr/local/bin/composer
18-
RUN chmod +x /usr/local/bin/composer
19-
RUN composer self-update
20-
21-
ADD conf/apache.conf /etc/apache2/sites-available/000-default.conf
22-
23-
RUN a2enmod rewrite
24-
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
30-
RUN chmod +x /startScript.sh
31-
32-
RUN cd /var/www/html
33-
34-
RUN composer create-project codeigniter4/appstarter codeigniter4 v4.0.3
35-
RUN chmod -R 0777 /var/www/html/codeigniter4/writable
36-
37-
RUN mv codeigniter4 /
38-
39-
RUN apt-get clean \
40-
&& rm -r /var/lib/apt/lists/*
41-
42-
EXPOSE 80
43-
VOLUME ["/var/www/html", "/var/log/apache2", "/etc/apache2"]
44-
1+
FROM php:7.3-apache
2+
3+
LABEL maintainer="Antonio Sanna <[email protected]>"
4+
5+
RUN apt-get update
6+
RUN apt-get upgrade -y
7+
8+
RUN apt-get install --fix-missing -y libpq-dev
9+
RUN apt-get install --no-install-recommends -y libpq-dev
10+
RUN apt-get install -y libxml2-dev libbz2-dev zlib1g-dev
11+
RUN apt-get -y install libsqlite3-dev libsqlite3-0 mariadb-client curl exif ftp
12+
RUN docker-php-ext-install intl
13+
RUN apt-get -y install --fix-missing zip unzip
14+
15+
# Composer
16+
RUN curl -sS https://getcomposer.org/installer | php
17+
RUN mv composer.phar /usr/local/bin/composer
18+
RUN chmod +x /usr/local/bin/composer
19+
RUN composer self-update
20+
21+
ADD conf/apache.conf /etc/apache2/sites-available/000-default.conf
22+
23+
RUN a2enmod rewrite
24+
25+
ADD startScript.sh /startScript.sh
26+
RUN chmod +x /startScript.sh
27+
28+
RUN cd /var/www/html
29+
30+
RUN composer create-project codeigniter4/appstarter codeigniter4 v4.0.4
31+
RUN chmod -R 0777 /var/www/html/codeigniter4/writable
32+
33+
RUN mv codeigniter4 /
34+
35+
RUN apt-get clean \
36+
&& rm -r /var/lib/apt/lists/*
37+
38+
EXPOSE 80
39+
VOLUME ["/var/www/html", "/var/log/apache2", "/etc/apache2"]
40+
4541
CMD ["bash", "/startScript.sh"]

docker-compose.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ version: "3"
33
services:
44
#--------------------------------------------------------------------------#
55
#--------------------------------------------------------------------------#
6-
# C O D E I G N I T E R v4.0.3 #
6+
# C O D E I G N I T E R v4.0.4 #
77
#--------------------------------------------------------------------------#
88
#--------------------------------------------------------------------------#
99
codeigniter4:
10-
image: codeigniter:4.0.3
10+
image: atsanna/codeigniter4:latest
1111
container_name: 'codeigniter4'
12-
build:
13-
context: ./
1412
ports:
1513
- 80:80
1614
links:

0 commit comments

Comments
 (0)