glensc / php-alpine

PHP Packages for Alpine Linux
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Minimum Viable Product #4

Open glensc opened 4 years ago

glensc commented 4 years ago
peter279k commented 3 years ago

I will do more contributions on this forked repository since the original repository has been inactive for the period of the time :).

glensc commented 3 years ago

I don't need this myself anymore, as I found I can use pretty recent PHP versions from alpine own repositories:

FROM alpine:3.9 AS php-7.2
RUN apk add php7

FROM alpine:3.12 AS php-7.3
RUN apk add php7

FROM alpine:edge AS php-7.4
RUN apk add php7

FROM alpine:edge AS php-8.0
RUN apk add php8
RUN ln -s php8 /usr/bin/php

And since I do not require multiple PHP versions in the same images, this is pretty satisfactory for me.

peter279k commented 3 years ago

Never mind. I will use this approach you mention :).