/
es174
/
hackaton-med-back
Обзор
Документация
Войти
/
es174
/
hackaton-med-back
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
php8-consumer/Dockerfile
38 строк
1 KB
ES
first_commit
22 ноя 2024, 22:38
22 ноя 2024, 22:38
9daea83
Код
Авторство
О чём код?
FROM php:8.0.3-fpm ARG TIMEZONE RUN apt-get update && apt-get install -y apt-transport-https git unzip openssl procps acl libzip-dev zlib1g-dev libicu-dev # Install Composer RUN curl -sS https://getcomposer.org/installer | php \ && chmod +x composer.phar && mv composer.phar /usr/local/bin/composer RUN composer --version # Set timezone RUN ln -snf /usr/share/zoneinfo/${TIMEZONE} /etc/localtime && echo ${TIMEZONE} > /etc/timezone RUN printf '[PHP]\ndate.timezone = "%s"\n', ${TIMEZONE} > /usr/local/etc/php/conf.d/tzone.ini # Install extensions RUN docker-php-ext-install pdo pdo_mysql bcmath zip RUN docker-php-ext-configure intl RUN docker-php-ext-install intl RUN docker-php-ext-enable intl # Install Redis extension RUN pecl install -o -f redis && rm -rf /tmp/pear && docker-php-ext-enable redis # Install supervisor RUN apt-get install -y supervisor RUN mkdir -p /var/log/supervisor COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf # Create an alias for Symfony3 console RUN echo 'alias symfony="php bin/console"' >> ~/.bashrc WORKDIR /var/www/symfony ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ RUN chmod +x /usr/local/bin/install-php-extensions && sync && \ install-php-extensions amqp CMD ["supervisord"]