-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
63 lines (50 loc) · 1.3 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
FROM ubuntu:14.04
MAINTAINER t3kit
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -yq \
curl \
# ======= git =====
git \
# ======= apache =====
apache2 \
# Install php 7
libapache2-mod-php5 \
php-apc \
php-pear \
php5-cli \
php5-common \
php5-json \
php5-curl \
php5-dev \
php5-fpm \
php5-gd \
php5-ldap \
php5-mysql \
php5-mcrypt \
php5-intl \
php5-xdebug \
# Install tools
nano \
graphicsmagick \
imagemagick \
ghostscript \
mysql-client \
iputils-ping \
apt-utils \
locales \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# ======= composer =======
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# ======= nodejs =======
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - && apt-get install -y nodejs
# Set locales
RUN locale-gen en_US.UTF-8 en_GB.UTF-8 de_DE.UTF-8 es_ES.UTF-8 fr_FR.UTF-8 it_IT.UTF-8 km_KH sv_SE.UTF-8 fi_FI.UTF-8
RUN a2enmod rewrite expires
# Configure PHP
ADD typo3.php.ini /etc/php5/apache2/conf.d/
# Configure vhost
ADD typo3.default.conf /etc/apache2/sites-enabled/000-default.conf
EXPOSE 80 443
WORKDIR /var/www/html
RUN rm index.html
CMD ["apache2ctl", "-D", "FOREGROUND"]