PHP Psalm Container. https://psalm.dev/
  • Dockerfile 100%
Find a file
2025-12-20 17:25:35 +01:00
conf Handle ext opcache being moved to core with php 8.5 2025-12-20 17:25:35 +01:00
Containerfile Handle ext opcache being moved to core with php 8.5 2025-12-20 17:25:35 +01:00
readme.md Modernize build 2025-12-20 15:31:46 +01:00

Psalm container image

Container image containing php and the static analysis tool psalm.

Intended image contents

  • php
  • psalm

Run

podman container run \
    --rm \
    --interactive --tty \
    --volume=.:/src \
    code.netztechniker.at/ludwig/psalm:latest \
        --config /path/to/psalm-config.xml

# or the short variant
podman run --rm -it -v .:/src code.netztechniker.at/ludwig/psalm -c /path/to/psalm-config.xml

Build

PHP_VERSION=x.y \
PSALM_VERSION=x.y.z \
podman image build . \
    --build-arg PHP_VERSION=$PHP_VERSION \
    --build-arg PSALM_VERSION=$PSALM_VERSION \
    --tag code.netztechniker.at/ludwig/psalm:$PSALM_VERSION-php$PHP_VERSION