mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
17 lines
297 B
Docker
17 lines
297 B
Docker
FROM composer:1.8 AS composer
|
|
|
|
RUN composer global require hirak/prestissimo
|
|
|
|
COPY composer.json composer.json
|
|
COPY stubs stubs
|
|
RUN composer install --no-dev --optimize-autoloader --prefer-dist
|
|
|
|
|
|
FROM php:7.4-cli
|
|
WORKDIR /rector
|
|
|
|
COPY . .
|
|
COPY --from=composer /app .
|
|
|
|
ENTRYPOINT [ "bin/rector" ]
|