Dockerfile 365 B

123456789
  1. FROM php:7.4-cli
  2. ENV COMPOSER_ALLOW_SUPERUSER 1
  3. RUN apt update
  4. RUN apt install -y git unzip
  5. RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
  6. RUN composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
  7. #RUN composer update topthink/framework
  8. #CMD ["php", "./think", "-p", "80"]