File tree 2 files changed +8
-11
lines changed
2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 1
- FROM ubuntu:20.04
1
+ FROM ubuntu:20.10
2
2
3
3
ARG DEBIAN_FRONTEND=noninteractive
4
4
5
5
RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /dev/null
6
6
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
7
7
RUN apt-get update -yqq > /dev/null && \
8
- apt-get install -yqq nginx git unzip php7.4 php7.4-common php7.4-cli php7.4-fpm php7.4-mysql php7.4-xml php7.4-mbstring php7.0-mcrypt php7.4-intl > /dev/null
8
+ apt-get install -yqq nginx git unzip \
9
+ php8.0-fpm php8.0-mysql php8.0-xml php8.0-mbstring php8.0-intl > /dev/null
9
10
10
11
RUN apt-get install -yqq composer > /dev/null
11
12
12
- COPY deploy/conf/* /etc/php/7.4 /fpm/
13
- COPY deploy/conf/* /etc/php/7.4 /cli/
13
+ COPY deploy/conf/* /etc/php/8.0 /fpm/
14
+ COPY deploy/conf/* /etc/php/8.0 /cli/
14
15
15
16
ADD ./ /cakephp
16
17
WORKDIR /cakephp
17
18
18
- RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.4 /fpm/php-fpm.conf ; fi;
19
+ RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/8.0 /fpm/php-fpm.conf ; fi;
19
20
20
21
RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
21
22
22
23
RUN chmod -R 777 /cakephp
23
24
24
- EXPOSE 8080
25
-
26
- CMD service php7.4-fpm start && \
25
+ CMD service php8.0-fpm start && \
27
26
nginx -c /cakephp/deploy/nginx.conf
28
27
Original file line number Diff line number Diff line change 5
5
"type" : " project" ,
6
6
"license" : " MIT" ,
7
7
"require" : {
8
- "php" : " >=7.2" ,
9
- "cakephp/cakephp" : " ^4.0.2" ,
8
+ "cakephp/cakephp" : " ^4.1" ,
10
9
"cakephp/plugin-installer" : " ^1.0"
11
10
},
12
11
"autoload" : {
15
14
}
16
15
},
17
16
"scripts" : {
18
- "post-autoload-dump" : " Cake\\ Composer\\ Installer\\ PluginInstaller::postAutoloadDump" ,
19
17
"check" : [
20
18
" @test" ,
21
19
" @cs-check"
You can’t perform that action at this time.
0 commit comments