Sign inSign up

minicli/php81

By minicli

•Updated almost 4 years ago

Minimalist PHP 8.1 distroless image built with apko

Image
0

10K+

minicli/php81 repository overview

⁠minicli/php81

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.

⁠Usage

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"]

⁠Image Details

  • Workdir: /home/minicli
  • Non-root user: minicli
  • By default, runs commands as root

⁠What's included:

  • alpine-baselayout-data
  • ca-certificates-bundle
  • curl
  • git
  • zip
  • unzip
  • libxml2-dev
  • freetype-dev
  • libjpeg-turbo-dev
  • libpng-dev
  • php81
  • php81-gd
  • php81-curl
  • php81-mbstring
  • php81-phar
  • php81-openssl
  • php81-pcntl

Tag summary

Content type

Image

Digest

sha256:6282e3767…

Size

17.5 MB

Last updated

almost 4 years ago

docker pull minicli/php81