Sign inSign up

tangyongjin/php73

By tangyongjin

•Updated over 2 years ago

php73 for aws crm

Image
Languages & frameworks
API management
0

230

tangyongjin/php73 repository overview

FROM php:7.3.33-apache

⁠Install apt-utils to avoid debconf warning

RUN apt-get update && apt-get install -y apt-utils

⁠Install mysqli extension

RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli

⁠Install dependencies and PHP extensions

RUN apt-get update && apt-get install -y
zlib1g
zlib1g-dev
libzip-dev
&& docker-php-ext-install zip

⁠Install curl extension

RUN apt-get update && apt-get install -y libcurl4-openssl-dev
&& docker-php-ext-install curl

⁠Install bcmath extension

RUN docker-php-ext-install bcmath

⁠Update and upgrade packages

RUN apt-get update && apt-get upgrade -y

⁠Set the working directory

WORKDIR /var/www/html

⁠Add Apache configuration

ADD 000-default.conf /etc/apache2/sites-enabled/000-default.conf

⁠Enable Apache modules

RUN a2enmod rewrite ssl

⁠Copy initialization script and PHP configuration

COPY init.sh /usr/local/bin/ COPY php.ini /usr/local/etc/php/

⁠Set the entry point

ENTRYPOINT ["bash", "init.sh"]

Tag summary

Content type

Image

Digest

sha256:5017461fc…

Size

213 MB

Last updated

over 2 years ago

docker pull tangyongjin/php73