-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (30 loc) · 1.13 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM debian:jessie
MAINTAINER André Cianfarani <[email protected]>
RUN apt-get update && apt-get install -y apache2 php5 libapache2-mod-php5 php5-mysql php5-curl php5-gd php5-intl php5-mcrypt php5-xmlrpc
RUN apt-get install -y ssmtp
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
RUN mkdir /etc/apache2/ssl
RUN a2enmod rewrite
RUN a2enmod ssl
RUN a2enmod headers
# Install composer
RUN apt-get update && apt-get install -y curl
RUN curl -s https://getcomposer.org/installer | php
RUN mv composer.phar /usr/local/bin/composer
RUN mkdir /var/composer
RUN composer require symfony/var-dumper --working-dir=/var/composer
RUN chown -R www-data:www-data /var/composer
# Install git
RUN apt-get update && apt-get install -y git
ADD ports.conf /etc/apache2/ports.conf
ADD ssl.key /etc/apache2/ssl/ssl.key
ADD ssl.crt /etc/apache2/ssl/ssl.crt
COPY entrypoint.sh /entrypoint.sh
RUN chmod 777 /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
RUN ln -s /etc/apache2/sites-available/vhost-website.conf /etc/apache2/sites-enabled/vhost-website.conf
CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]
EXPOSE 80
EXPOSE 443