mirror of
https://github.com/rectorphp/rector.git
synced 2024-09-01 05:10:14 +00:00
Added .dockerignore with basic files Fixed installing composer in docker + cache optimalization
16 lines
287 B
Docker
16 lines
287 B
Docker
FROM composer:1.8 AS composer
|
|
|
|
RUN composer global require hirak/prestissimo
|
|
|
|
COPY composer.json composer.json
|
|
RUN composer install --no-dev --optimize-autoloader --prefer-dist
|
|
|
|
|
|
FROM php:7.1-cli-alpine
|
|
WORKDIR /rector
|
|
|
|
COPY . .
|
|
COPY --from=composer /app .
|
|
|
|
ENTRYPOINT [ "bin/rector" ]
|