123456789101112131415161718192021222324252627282930 |
- # https://github.com/docker-library/php/blob/2af934c6dd18d0ccbacb2cd8efb8f0b6f81be5b2/8.1/bullseye/apache/Dockerfile
- FROM php:8.1.8-apache
- # FROM php:7.4-apache
- RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli
- RUN apt-get update && apt-get upgrade -y
- RUN pecl install redis-5.3.7 \
- && pecl install xdebug-3.2.1 \
- && docker-php-ext-enable redis xdebug
- # RUN a2enmod ssl && a2enmod rewrite
- # RUN mkdir -p /etc/apache2/ssl
- # COPY ./php/php.ini /usr/local/etc/php/php.ini-development
- # COPY ./ssl/*.pem /etc/apache2/ssl/
- # COPY ./apache/000-default.conf /etc/apache2/sites-available/000-default.conf
- # COPY src /var/www/
- # RUN chown -R www-data:www-data /var/www
- WORKDIR /var/www/html
- EXPOSE 80
- # EXPOSE 443
- VOLUME [ "/var/www/html" ]
- # docker build -t php:8 -f .ide/Dockerfile-php .
- # docker run --rm -it -p 8080:80 -v "$PWD":/var/www/html php:8
|