Rector Container. https://getrector.com
  • Dockerfile 100%
Find a file
2026-08-19 11:09:45 +02:00
conf Provide image 2026-08-19 11:09:45 +02:00
.editorconfig Provide image 2026-08-19 11:09:45 +02:00
Containerfile Provide image 2026-08-19 11:09:45 +02:00
readme.md Provide image 2026-08-19 11:09:45 +02:00

Rector container image

Container image containing php and the refactoring tool rector.

Intended image contents

  • php
  • rector

Run

podman container run \
    --rm \
    --interactive --tty \
    --volume=.:/src \
    code.netztechniker.at/ludwig/rector:latest \
        process

# or the short variant
podman run --rm -it -v .:/src code.netztechniker.at/ludwig/rector process

Build

PHP_VERSION=x.y \
RECTOR_VERSION=x.y.z \
podman image build . \
  --build-arg PHP_VERSION=$PHP_VERSION \
  --build-arg RECTOR_VERSION=$RECTOR_VERSION \
  --annotation=org.opencontainers.image.revision=$(git rev-parse HEAD) \
  --tag code.netztechniker.at/ludwig/rector:$RECTOR_VERSION