php additional app
This commit is contained in:
@@ -4,18 +4,20 @@ WORKDIR /var/www/html
|
||||
#COPY index.php index.php
|
||||
#COPY src/ src
|
||||
EXPOSE 80
|
||||
RUN apt-get update -y
|
||||
RUN apt-get update --fix-missing -y
|
||||
RUN apt-get upgrade -y
|
||||
RUN apt-get install -y apt-utils apache2 php libapache2-mod-php
|
||||
RUN apt-get install -y nano apt-utils apache2 php libapache2-mod-php php-mysql php-zip php-xml php-mbstring php-curl php-gd php-intl #php-mysql PDO driver
|
||||
RUN a2enmod rewrite
|
||||
#RUN apt install -y php apahec2 libapache2-mod-php # php-mysql
|
||||
|
||||
#COPY my-apache-site.conf /etc/apache2/sites-available/my-apache-site.conf
|
||||
#RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf && a2enmod rewrite && a2dissite 000-default && a2ensite my-apache-site && service apache2 restart
|
||||
#RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf && a2enmod rewrite && a2dissite 000-default && a2en>
|
||||
COPY dir.conf /etc/apache2/mods-enabled/dir.conf
|
||||
COPY 000-default.conf /etc/apache2/sites-available/000-default.conf
|
||||
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf && service apache2 restart
|
||||
|
||||
#docker-php-ext-install pdo_mysql
|
||||
#RUN apt-get install -y libmcached-dev zlib1g-dev && pecl install memcached-3.1.5 && docker-php-ext-enable memcached
|
||||
#RUN apt-get install -y libmcached-dev zlib1g-dev && pecl install memcached-3.1.5 && docker-php-ext-enable memcac>
|
||||
|
||||
#COPY --from=composer:2 /usr/bin/composer /usr/bin/#composer
|
||||
#COPY composer.json composer.json
|
||||
|
||||
Reference in New Issue
Block a user