-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (24 loc) · 849 Bytes
/
Dockerfile
File metadata and controls
30 lines (24 loc) · 849 Bytes
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
FROM php:5.6-apache
MAINTAINER Dries De Peuter <dries@nousefreak.be>
RUN apt-get update \
&& apt-get install -y \
fontconfig \
xfonts-75dpi \
libxrender1 \
xfonts-base \
libjpeg62-turbo \
libxext6 \
git \
wget \
&& wget -O wkhtmltox.deb http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-jessie-amd64.deb \
&& dpkg -i wkhtmltox.deb
RUN sed -i 's|DocumentRoot /var/www/html|DocumentRoot /var/www/html/web|' /etc/apache2/sites-available/000-default.conf \
&& echo "FallbackResource /index.php" >> /etc/apache2/apache2.conf
COPY . /var/www/html
RUN php -r "readfile('https://getcomposer.org/installer');" | php \
&& php composer.phar install -o \
&& rm composer.phar
RUN apt-get purge -y \
wget \
git \
&& apt-get clean