Dockerfile 617 B

12345678910111213141516171819
  1. FROM php:8.0-cli
  2. ARG DEBIAN_FRONTEND=noninteractive
  3. ADD . /opt/rounding-yoomoney/
  4. WORKDIR /opt/rounding-yoomoney
  5. RUN apt-get update && apt-get dist-upgrade --yes \
  6. && apt-get install --no-install-recommends --yes libzip-dev\
  7. && docker-php-ext-install zip \
  8. && curl --http1.1 -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
  9. && composer install --no-dev --no-progress --optimize-autoloader --no-interaction --no-cache \
  10. && apt-get autoremove --yes --purge \
  11. && apt-get clean all \
  12. && rm -rf /var/lib/apt/lists/*
  13. USER 1000:1000
  14. CMD ["php", "app.php"]