Public Repository

Last pushed: 7 months ago
Short Description
Short description is empty for this repo.
Full Description

FROM debian:wheezy

MAINTAINER Wellington da Mata wellington@tomdamata.com

ADD ./apt/sources.list /etc/apt/sources.list

RUN apt-get update

RUN apt-get install -y vim net-tools locate apt-utils ssh

RUN apt-get install -y apache2
RUN apt-get --yes --force-yes install php5 php-pear php5-mysql php5-mcrypt php5-apcu php5-curl php5-intl
RUN apt-get --yes --force-yes install mysql-server mysql-client

solving error "Error: apc/apcu function doesn't exist."

php5-dev libpcre3-dev php-apc

#RUN apt-get install -y php5-apcu
RUN apt-get clean

ADD ./apache2/apache2.conf /etc/apache2/apache2.conf
ADD ./apache2/ports.conf /etc/apache2/ports.conf
ADD ./php/php.ini /etc/php5/apache2/php.ini

#RUN ln -sf /etc/apache2/mods-available/ssl.conf /etc/apache2/mods-enabled/ssl.conf

#RUN ln -sf /etc/apache2/mods-available/ssl.load /etc/apache2/mods-enabled/ssl.load
RUN a2enmod php5 headers ssl

Remove pre-installed database

RUN rm -rf /var/lib/mysql/*
RUN chown -R mysql:mysql /var/lib/mysql
ADD ./mysql/debian.cnf /etc/mysql/debian.cnf

automatizar itens abaixo para liberar acesso remoto ao mysql

vim /etc/mysql/my.cnf

#bind-address = 127.0.0.1

#RUN ln -sf /dev/stderr /var/log/nginx/error.log

Remove default VirtualHost

RUN rm -f /etc/apache2/sites-enabled/
RUN rm -f /etc/apache2/sites-available/

Enable rewrite module

RUN a2enmod rewrite expires

EXPOSE 22 80 443 3306

#RUN service apache2 start

#ENTRYPOINT [“/usr/sbin/apache2]

#CMD [“start”, “-g”]

CMD bash

Docker Pull Command
Owner
ciapipe