mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-31 04:32:31 +01:00
17 lines
318 B
Docker
17 lines
318 B
Docker
FROM composer:latest AS composer
|
|
|
|
COPY ./composer.json /app
|
|
|
|
RUN composer install --no-dev
|
|
|
|
|
|
FROM php:7.1-cli
|
|
|
|
WORKDIR /rector
|
|
|
|
COPY . /rector
|
|
COPY --from=composer /app .
|
|
|
|
CMD ["bin/rector", "process", "/project", "--dry-run", "--config", "/project/rector.yml"]
|
|
|
|
# TODO: dev with xdebug extension for local development |