-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (27 loc) · 1.27 KB
/
Dockerfile
File metadata and controls
35 lines (27 loc) · 1.27 KB
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
FROM ubuntu:14.04
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN apt-get update -q && \
DEBIAN_FRONTEND=noninteractive \
apt-get install -yq vim supervisor curl apache2 \
libapache2-mod-php5 php5-gd php-pear php5-curl php5-mcrypt php5-memcache php5-xdebug php5-dev libpcre3-dev libapache2-mod-auth-mysql php5-mysql
RUN a2enmod php5
RUN a2enmod ssl
RUN a2enmod rewrite
EXPOSE 80 443
WORKDIR /var/www
# Konfiguration
RUN usermod -u 1000 www-data && usermod -a -G users www-data
# Apache Konfiguration
ADD vhost.conf /etc/apache2/sites-enabled/000-default.conf
RUN echo "ServerName localhost" > /etc/apache2/conf-available/user.conf && a2enconf user
# PHP User Configuration
RUN echo "date.timezone=\"Europe/Berlin\"" > /etc/php5/apache2/conf.d/30-user.ini
RUN echo "display_errors=1" >> /etc/php5/apache2/conf.d/30-user.ini
# XDebug
RUN echo "xdebug.remote_enable = 1\nxdebug.remote_port = 9000 \nxdebug.remote_connect_back=On \nxdebug.remote_autostart=On \nxdebug.profiler_enable=1 \nxdebug.profiler_output_dir=/tmp \nxdebug.max_nesting_level=250" >> /etc/php5/apache2/conf.d/20-xdebug.ini
# Supervisord Konfiguration
ADD supervisord.conf /etc/supervisor/supervisord.conf
CMD ["supervisord", "-c", "/etc/supervisor/supervisord.conf"]