FROM docker.io/composer AS composer WORKDIR /app COPY composer.json main.php functions.php ./ RUN composer install FROM docker.io/php:alpine COPY --from=composer /app /app WORKDIR /app ENTRYPOINT ["php", "main.php"]