mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 05:48:21 +01:00
17 lines
319 B
Docker
17 lines
319 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.yaml"]
|
|
|
|
# TODO: dev with xdebug extension for local development |