PHP APK Repository for Alpine Linux
FROM alpine:3.12
ADD https://dl.bintray.com/php-alpine/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
RUN apk --update-cache add ca-certificates && \
echo "https://dl.bintray.com/php-alpine/v3.12/php-8.0" >> /etc/apk/repositories
# install php and some extensions
RUN apk add --update-cache \
php8 \
php8-bz2 \
php8-mysql \
php8-any-other-available-package...
FROM alpine:3.11
ADD https://dl.bintray.com/php-alpine/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
RUN apk --update-cache add ca-certificates && \
echo "https://dl.bintray.com/php-alpine/v3.11/php-8.0" >> /etc/apk/repositories
# install php and some extensions
RUN apk add --update-cache \
php8 \
php8-bz2 \
php8-mysql \
php8-any-other-available-package...
FROM alpine:3.12
ADD https://dl.bintray.com/php-alpine/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
RUN apk --update-cache add ca-certificates && \
echo "https://dl.bintray.com/php-alpine/v3.12/php-7.4" >> /etc/apk/repositories
# install php and some extensions
RUN apk add --update-cache \
php7 \
php7-bz2 \
php7-mysql \
php7-any-other-available-package...
FROM alpine:3.11
ADD https://dl.bintray.com/php-alpine/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
RUN apk --update-cache add ca-certificates && \
echo "https://dl.bintray.com/php-alpine/v3.11/php-7.4" >> /etc/apk/repositories
# install php and some extensions
RUN apk add --update-cache \
php7 \
php7-bz2 \
php7-mysql \
php7-any-other-available-package...
FROM alpine:3.10
ADD https://dl.bintray.com/php-alpine/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
RUN apk --update-cache add ca-certificates && \
echo "https://dl.bintray.com/php-alpine/v3.10/php-7.4" >> /etc/apk/repositories
# install php and some extensions
RUN apk add --update-cache \
php7 \
php7-bz2 \
php7-mysql \
php7-any-other-available-package...
FROM alpine:3.11
ADD https://dl.bintray.com/php-alpine/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
RUN apk --update-cache add ca-certificates && \
echo "https://dl.bintray.com/php-alpine/v3.11/php-7.3" >> /etc/apk/repositories
# install php and some extensions
RUN apk add --update-cache \
php7 \
php7-bz2 \
php7-mysql \
php7-any-other-available-package...
FROM alpine:3.10
ADD https://dl.bintray.com/php-alpine/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
RUN apk --update-cache add ca-certificates && \
echo "https://dl.bintray.com/php-alpine/v3.10/php-7.3" >> /etc/apk/repositories
# install php and some extensions
RUN apk add --update-cache \
php7 \
php7-bz2 \
php7-mysql \
php7-any-other-available-package...
Repository URL |
---|
https://dl.bintray.com/php-alpine/v3.12/php-8.0 |
Alpine Version | PHP Version | PHP Release |
---|---|---|
3.12 | 8.0 | 8.0.0 |
FROM alpine:3.12
ADD https://dl.bintray.com/php-alpine/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
RUN apk --update-cache add ca-certificates && \
echo "https://dl.bintray.com/php-alpine/v3.12/php-8.0" >> /etc/apk/repositories
# install php and some extensions
RUN apk add --update-cache \
php8 \
php8-bz2 \
php8-mysql \
php8-any-other-available-package...
Repository URL |
---|
https://dl.bintray.com/php-alpine/v3.11/php-8.0 |
Alpine Version | PHP Version | PHP Release |
---|---|---|
3.11 | 8.0 | 8.0.0 |
FROM alpine:3.11
ADD https://dl.bintray.com/php-alpine/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
RUN apk --update-cache add ca-certificates && \
echo "https://dl.bintray.com/php-alpine/v3.11/php-8.0" >> /etc/apk/repositories
# install php and some extensions
RUN apk add --update-cache \
php8 \
php8-bz2 \
php8-mysql \
php8-any-other-available-package...
FROM alpine:3.11
ADD https://dl.bintray.com/php-alpine/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
RUN apk --update-cache add ca-certificates && \
echo "https://dl.bintray.com/php-alpine/v3.11/php-7.3" >> /etc/apk/repositories
# install php and some extensions
RUN apk add --update-cache \
php7 \
php7-bz2 \
php7-mysql \
php7-any-other-available-package...
FROM alpine:3.10
ADD https://dl.bintray.com/php-alpine/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
RUN apk --update-cache add ca-certificates && \
echo "https://dl.bintray.com/php-alpine/v3.10/php-7.3" >> /etc/apk/repositories
# install php and some extensions
RUN apk add --update-cache \
php7 \
php7-bz2 \
php7-mysql \
php7-any-other-available-package...
FROM alpine:3.12
ADD https://dl.bintray.com/php-alpine/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
RUN apk --update-cache add ca-certificates && \
echo "https://dl.bintray.com/php-alpine/v3.12/php-7.4" >> /etc/apk/repositories
# install php and some extensions
RUN apk add --update-cache \
php7 \
php7-bz2 \
php7-mysql \
php7-any-other-available-package...
FROM alpine:3.11
ADD https://dl.bintray.com/php-alpine/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
RUN apk --update-cache add ca-certificates && \
echo "https://dl.bintray.com/php-alpine/v3.11/php-7.4" >> /etc/apk/repositories
# install php and some extensions
RUN apk add --update-cache \
php7 \
php7-bz2 \
php7-mysql \
php7-any-other-available-package...
FROM alpine:3.10
ADD https://dl.bintray.com/php-alpine/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
RUN apk --update-cache add ca-certificates && \
echo "https://dl.bintray.com/php-alpine/v3.10/php-7.4" >> /etc/apk/repositories
# install php and some extensions
RUN apk add --update-cache \
php7 \
php7-bz2 \
php7-mysql \
php7-any-other-available-package...
This release brings PHP 7.2.1 minor update alongside with support for the new password_hash()
function algorithm.
Argon2 was the winning hashing algorithm on the Password Hashing Competition held between 2013 and 2015 which compared and tested several hashing algorithms.
You can check more about it on the links provided on previous paragraphs.
As from this release, someone using this packages can now just run: password_hash ($somePasswordHere, PASSWORD_ARGON2I)
and it will work like a charm.
This release is a fix intended to fix versions on the minor PHP version.
So dependencies will only be satisfied by packages within the same minor version range.
i.e. php7-session version 7.1.9 depends on php7-common >= 7.1.0 but php-common < 7.2.0
Since PHP 7.2, there is no more need to include .so or .dll extension on extension file names.
The 7.2 scripts were updated to reflect this.