Skip to content

Commit fd35067

Browse files
committed
Removed php
1 parent 7ad93e9 commit fd35067

File tree

3 files changed

+27
-148
lines changed

3 files changed

+27
-148
lines changed

Dockerfile

+25-94
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ RUN \
1717
echo "**** install build packages ****" && \
1818
apk add --no-cache --virtual=build-dependencies \
1919
build-base \
20-
cargo \
2120
libffi-dev \
2221
libxml2-dev \
2322
libxslt-dev \
@@ -27,57 +26,10 @@ RUN \
2726
apk add --no-cache \
2827
fail2ban \
2928
gnupg \
30-
memcached \
3129
nginx-mod-http-brotli \
32-
nginx-mod-http-dav-ext \
33-
nginx-mod-http-echo \
34-
nginx-mod-http-fancyindex \
35-
nginx-mod-http-geoip2 \
36-
nginx-mod-http-headers-more \
37-
nginx-mod-http-image-filter \
38-
nginx-mod-http-perl \
39-
nginx-mod-http-redis2 \
40-
nginx-mod-http-set-misc \
41-
nginx-mod-http-upload-progress \
42-
nginx-mod-http-xslt-filter \
43-
nginx-mod-mail \
44-
nginx-mod-rtmp \
45-
nginx-mod-stream \
46-
nginx-mod-stream-geoip2 \
47-
nginx-vim \
48-
php83-bcmath \
49-
php83-bz2 \
50-
php83-dom \
51-
php83-exif \
52-
php83-ftp \
53-
php83-gd \
54-
php83-gmp \
55-
php83-imap \
56-
php83-intl \
57-
php83-ldap \
58-
php83-mysqli \
59-
php83-mysqlnd \
60-
php83-opcache \
61-
php83-pdo_mysql \
62-
php83-pdo_odbc \
63-
php83-pdo_pgsql \
64-
php83-pdo_sqlite \
65-
php83-pear \
66-
php83-pecl-apcu \
67-
php83-pecl-memcached \
68-
php83-pecl-redis \
69-
php83-pgsql \
70-
php83-posix \
71-
php83-soap \
72-
php83-sockets \
73-
php83-sodium \
74-
php83-sqlite3 \
75-
php83-tokenizer \
76-
php83-xmlreader \
77-
php83-xsl \
7830
whois && \
7931
apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community \
80-
php83-pecl-mcrypt && \
32+
&& \
8133
echo "**** install certbot plugins ****" && \
8234
if [ -z ${CERTBOT_VERSION+x} ]; then \
8335
CERTBOT_VERSION=$(curl -sL https://pypi.python.org/pypi/certbot/json |jq -r '. | .info.version'); \
@@ -88,50 +40,6 @@ RUN \
8840
wheel && \
8941
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.19/ \
9042
certbot==${CERTBOT_VERSION} \
91-
certbot-dns-acmedns \
92-
certbot-dns-aliyun \
93-
certbot-dns-azure \
94-
certbot-dns-bunny \
95-
certbot-dns-cloudflare \
96-
certbot-dns-cpanel \
97-
certbot-dns-desec \
98-
certbot-dns-digitalocean \
99-
certbot-dns-directadmin \
100-
certbot-dns-dnsimple \
101-
certbot-dns-dnsmadeeasy \
102-
certbot-dns-dnspod \
103-
certbot-dns-do \
104-
certbot-dns-domeneshop \
105-
certbot-dns-dreamhost \
106-
certbot-dns-duckdns \
107-
certbot-dns-dynudns \
108-
certbot-dns-freedns \
109-
certbot-dns-gehirn \
110-
certbot-dns-glesys \
111-
certbot-dns-godaddy \
112-
certbot-dns-google \
113-
certbot-dns-google-domains \
114-
certbot-dns-he \
115-
certbot-dns-hetzner \
116-
certbot-dns-infomaniak \
117-
certbot-dns-inwx \
118-
certbot-dns-ionos \
119-
certbot-dns-linode \
120-
certbot-dns-loopia \
121-
certbot-dns-luadns \
122-
certbot-dns-namecheap \
123-
certbot-dns-netcup \
124-
certbot-dns-njalla \
125-
certbot-dns-nsone \
126-
certbot-dns-ovh \
127-
certbot-dns-porkbun \
128-
certbot-dns-rfc2136 \
129-
certbot-dns-route53 \
130-
certbot-dns-sakuracloud \
131-
certbot-dns-standalone \
132-
certbot-dns-transip \
133-
certbot-dns-vultr \
134-
certbot-plugin-gandi \
13543
cryptography \
13644
future \
13745
requests && \
@@ -172,8 +80,31 @@ RUN \
17280
/defaults/nginx/proxy-confs --strip-components=1 --exclude=linux*/.editorconfig --exclude=linux*/.gitattributes --exclude=linux*/.github --exclude=linux*/.gitignore --exclude=linux*/LICENSE && \
17381
echo "**** cleanup ****" && \
17482
apk del --purge \
175-
build-dependencies && \
83+
build-dependencies \
84+
php83 \
85+
php83-ctype \
86+
php83-curl \
87+
php83-fileinfo \
88+
php83-fpm \
89+
php83-iconv \
90+
php83-json \
91+
php83-mbstring \
92+
php83-openssl \
93+
php83-phar \
94+
php83-session \
95+
php83-simplexml \
96+
php83-xml \
97+
php83-xmlwriter \
98+
php83-zip \
99+
php83-zlib && \
176100
rm -rf \
101+
/etc/s6-overlay/s6-rc.d/init-php/ \
102+
/etc/s6-overlay/s6-rc.d/svc-php-fpm/ \
103+
/etc/s6-overlay/s6-rc.d/user/contents.d/svc-php-fpm \
104+
/etc/s6-overlay/s6-rc.d/user/contents.d/init-php \
105+
/etc/s6-overlay/s6-rc.d/init-keygen/dependencies.d/init-php \
106+
/etc/logrotate.d/php-fpm \
107+
./config/php \
177108
/tmp/* \
178109
$HOME/.cache \
179110
$HOME/.cargo

Dockerfile.aarch64

-31
Original file line numberDiff line numberDiff line change
@@ -45,39 +45,8 @@ RUN \
4545
nginx-mod-stream \
4646
nginx-mod-stream-geoip2 \
4747
nginx-vim \
48-
php83-bcmath \
49-
php83-bz2 \
50-
php83-dom \
51-
php83-exif \
52-
php83-ftp \
53-
php83-gd \
54-
php83-gmp \
55-
php83-imap \
56-
php83-intl \
57-
php83-ldap \
58-
php83-mysqli \
59-
php83-mysqlnd \
60-
php83-opcache \
61-
php83-pdo_mysql \
62-
php83-pdo_odbc \
63-
php83-pdo_pgsql \
64-
php83-pdo_sqlite \
65-
php83-pear \
66-
php83-pecl-apcu \
67-
php83-pecl-memcached \
68-
php83-pecl-redis \
69-
php83-pgsql \
70-
php83-posix \
71-
php83-soap \
72-
php83-sockets \
73-
php83-sodium \
74-
php83-sqlite3 \
75-
php83-tokenizer \
76-
php83-xmlreader \
77-
php83-xsl \
7848
whois && \
7949
apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community \
80-
php83-pecl-mcrypt && \
8150
echo "**** install certbot plugins ****" && \
8251
if [ -z ${CERTBOT_VERSION+x} ]; then \
8352
CERTBOT_VERSION=$(curl -sL https://pypi.python.org/pypi/certbot/json |jq -r '. | .info.version'); \

root/defaults/nginx/site-confs/default.conf.sample

+2-23
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ server {
2020
include /config/nginx/ssl.conf;
2121

2222
root /config/www;
23-
index index.html index.htm index.php;
23+
index index.html index.htm;
2424

2525
# enable subfolder method reverse proxy confs
2626
include /config/nginx/proxy-confs/*.subfolder.conf;
@@ -48,28 +48,7 @@ server {
4848
# enable for Authentik (requires authentik-server.conf in the server block)
4949
#include /config/nginx/authentik-location.conf;
5050

51-
try_files $uri $uri/ /index.html /index.htm /index.php$is_args$args;
52-
}
53-
54-
location ~ ^(.+\.php)(.*)$ {
55-
# enable the next two lines for http auth
56-
#auth_basic "Restricted";
57-
#auth_basic_user_file /config/nginx/.htpasswd;
58-
59-
# enable for ldap auth (requires ldap-server.conf in the server block)
60-
#include /config/nginx/ldap-location.conf;
61-
62-
# enable for Authelia (requires authelia-server.conf in the server block)
63-
#include /config/nginx/authelia-location.conf;
64-
65-
# enable for Authentik (requires authentik-server.conf in the server block)
66-
#include /config/nginx/authentik-location.conf;
67-
68-
fastcgi_split_path_info ^(.+\.php)(.*)$;
69-
if (!-f $document_root$fastcgi_script_name) { return 404; }
70-
fastcgi_pass 127.0.0.1:9000;
71-
fastcgi_index index.php;
72-
include /etc/nginx/fastcgi_params;
51+
try_files $uri $uri/ /index.html;
7352
}
7453

7554
# deny access to .htaccess/.htpasswd files

0 commit comments

Comments
 (0)