Dockerfile 958 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. FROM php:7.4-fpm-alpine AS balticrest-php-fpm
  2. RUN apk add --no-cache --virtual build-dependencies $PHPIZE_DEPS
  3. RUN pecl install xdebug
  4. RUN apk add --no-cache coreutils \
  5. libzip-dev \
  6. freetype-dev \
  7. oniguruma-dev \
  8. libjpeg-turbo-dev \
  9. libpng-dev \
  10. icu-dev \
  11. git \
  12. nodejs \
  13. npm \
  14. mc
  15. RUN docker-php-ext-install \
  16. zip \
  17. intl \
  18. gd \
  19. bcmath \
  20. sockets \
  21. mbstring \
  22. pdo \
  23. pdo_mysql \
  24. && docker-php-ext-configure gd
  25. RUN apk del build-dependencies
  26. RUN curl -sS https://getcomposer.org/installer | php && \
  27. chmod 755 composer.phar && \
  28. mv composer.phar /usr/local/bin/composer
  29. RUN npm install --global gulp-cli
  30. COPY config/override.ini /usr/local/etc/php/conf.d/
  31. COPY config/xdebug.ini /usr/local/etc/php/conf.d/
  32. RUN rm /usr/local/etc/php-fpm.d/*.conf
  33. COPY config/pool.conf /usr/local/etc/php-fpm.d/
  34. CMD ["sh", "-c", "php-fpm -F"]
  35. WORKDIR /var/www/balticrest.ru
  36. EXPOSE 9000