Skip to content

Commit 1c6afdf

Browse files
committed
Add images for PHP 7.4 and PHP 8.0
1 parent ea14ed0 commit 1c6afdf

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed

Dockerfile-7.4

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM alpine:3.13
2+
3+
LABEL maintainer="[email protected]"
4+
5+
RUN apk -U upgrade && apk add --no-cache \
6+
curl \
7+
nginx \
8+
php7-fpm \
9+
tzdata \
10+
&& ln -s /usr/sbin/php-fpm7 /usr/sbin/php-fpm \
11+
&& addgroup -S php \
12+
&& adduser -S -G php php \
13+
&& rm -rf /var/cache/apk/* /etc/nginx/conf.d/* /etc/php7/conf.d/* /etc/php7/php-fpm.d/*
14+
15+
COPY files/s6-overlay files/general files/php7 /
16+
17+
# Enable options supported by this version of PHP-FPM
18+
RUN sed '/decorate_workers_output/s/^; //g' /etc/php7/php-fpm.conf
19+
20+
WORKDIR /www
21+
22+
ENTRYPOINT ["/init"]
23+
24+
EXPOSE 80
25+
26+
HEALTHCHECK --interval=5s --timeout=5s CMD curl -f http://127.0.0.1/php-fpm-ping || exit 1

Dockerfile-8.0

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM alpine:3.13
2+
3+
LABEL maintainer="[email protected]"
4+
5+
RUN apk -U upgrade && apk add --no-cache \
6+
curl \
7+
nginx \
8+
php8-fpm \
9+
tzdata \
10+
&& ln -s /usr/sbin/php-fpm8 /usr/sbin/php-fpm \
11+
&& addgroup -S php \
12+
&& adduser -S -G php php \
13+
&& rm -rf /var/cache/apk/* /etc/nginx/conf.d/* /etc/php8/conf.d/* /etc/php8/php-fpm.d/*
14+
15+
COPY files/s6-overlay files/general files/php8 /
16+
17+
WORKDIR /www
18+
19+
ENTRYPOINT ["/init"]
20+
21+
EXPOSE 80
22+
23+
HEALTHCHECK --interval=5s --timeout=5s CMD curl -f http://127.0.0.1/php-fpm-ping || exit 1

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ See the table below to see what version are currently available:
7272
| 7.1 | Alpine Linux 3.7 | [Alpine Linux repo](https://pkgs.alpinelinux.org/packages?name=php7*&branch=v3.7) |
7373
| 7.2 | Alpine Linux 3.8 | [Alpine Linux repo](https://pkgs.alpinelinux.org/packages?name=php7*&branch=v3.8) |
7474
| 7.3 | Alpine Linux 3.10 | [Alpine Linux repo](https://pkgs.alpinelinux.org/packages?name=php7*&branch=v3.10)|
75+
| 7.4 | Alpine Linux 3.13 | [Alpine Linux repo](https://pkgs.alpinelinux.org/packages?name=php7*&branch=v3.13)|
76+
| 8.0 | Alpine Linux 3.13 | [Alpine Linux repo](https://pkgs.alpinelinux.org/packages?name=php8*&branch=v3.13)|
7577
| 7.4-codecasts | Alpine Linux 3.12 | [Codecasts repo](https://dl.bintray.com/php-alpine/v3.12/php-7.4/x86_64/) |
7678
| 8.0-codecasts | Alpine Linux 3.12 | [Codecasts repo](https://dl.bintray.com/php-alpine/v3.12/php-8.0/x86_64/) |
7779

0 commit comments

Comments
 (0)