Dockerfile 615 B

12345678910
  1. FROM php:8.1-fpm-alpine
  2. ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
  3. RUN chmod +x /usr/local/bin/install-php-extensions && \
  4. install-php-extensions mysqli exif imagick zip memcached opcache redis intl xdebug && \
  5. echo "xdebug.mode=debug" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
  6. echo "xdebug.client_host=host.docker.internal" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
  7. COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
  8. RUN apk add --update nodejs npm
  9. WORKDIR /app/public