Skip to content

Latest commit

 

History

History

php81-dev

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

minicli/php81-dev

Minimalist Alpine-based PHP 8.1 development image to execute Minicli applications, including full GD support. Unlike minicli/php81, this image has apk-tools and composer installed, which allows you to easily install additional packages when extending this image from a Dockerfile. You can use this image to develop and debug Minicli apps.

This image is automatically built and published to minicli/php81-dev 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-dev:latest | jq

You'll get output that tells details about the image signature and should have the Issuer and Subject fields pointing to GitHub (Actions) URLs.

Usage

Use it directly with docker run to execute PHP:

docker run -it minicli/php81-dev

This will land you on the container's shell.

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.

Example Dockerfile:

FROM minicli/php81-dev:latest

# Install additional packages
# apk add --update-cache python python-dev

# 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
  • apk-tools
  • 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
  • composer
  • vim