Minimalist PHP 8.1 distroless image built with apko
10K+
Distroless apko PHP 8.1 image to execute Minicli applications, including full GD support. This image is automatically built and published to minicli/php81 on Docker Hub via GitHub Actions. Every image includes attestation signatures created with Sigstore. With the Cosign client installed, you can check this image signature with:
COSIGN_EXPERIMENTAL=1 cosign verify minicli/php81:latest | jq
You'll get output that tells details about the image signature and should have the Issuer and Subject fields pointing to GitHub URLs.
Use it directly with docker run to execute PHP:
docker run --rm erikaheidi/minicli:php81 --version
Or extend it from your Dockerfile to create a custom image based on it. This will allow you to install Composer and get your application dependencies installed as well. For instance, the following Dockerfile is used by the Dynacover GitHub Action:
FROM minicli/php81:latest
# Get latest Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# Checkout Dynacover
RUN git clone -b 1.0.1 --depth 1 https://github.com/erikaheidi/dynacover.git && \
cd dynacover && \
composer install --no-progress --no-dev --prefer-dist
ENTRYPOINT [ "php81", "/dynacover/dynacover" ]
CMD ["cover", "update"]
/home/minicliminiclirootContent type
Image
Digest
sha256:6282e3767…
Size
17.5 MB
Last updated
over 3 years ago
docker pull minicli/php81