forked from webdevops/TYPO3-docker-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
56 lines (51 loc) · 1.69 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
#++++++++++++++++++++++++++++++++++++++
# Application Docker container
#++++++++++++++++++++++++++++++++++++++
#
# PHP-Versions:
# ubuntu-12.04 -> PHP 5.3, LTS (precise)
# ubuntu-14.04 -> PHP 5.5, LTS (trusty)
# ubuntu-15.04 -> PHP 5.6 (vivid)
# ubuntu-15.10 -> PHP 5.6 (wily)
# centos-7 -> PHP 5.4
#
# Apache:
# webdevops/php-apache:ubuntu-12.04
# webdevops/php-apache:ubuntu-14.04
# webdevops/php-apache:ubuntu-15.04
# webdevops/php-apache:ubuntu-15.10
# webdevops/php-apache:centos-7
# webdevops/php-apache:debian-7
# webdevops/php-apache:debian-8
# webdevops/php-apache:debian-8-php7
#
# Nginx:
# webdevops/php-nginx:ubuntu-12.04
# webdevops/php-nginx:ubuntu-14.04
# webdevops/php-nginx:ubuntu-15.04
# webdevops/php-nginx:ubuntu-15.10
# webdevops/php-nginx:centos-7
# webdevops/php-nginx:debian-7
# webdevops/php-nginx:debian-8
# webdevops/php-nginx:debian-8-php7
#
# HHVM:
# webdevops/hhvm-apache
# webdevops/hhvm-nginx
#
#++++++++++++++++++++++++++++++++++++++
FROM webdevops/php-apache:ubuntu-14.04
ENV PROVISION_CONTEXT "development"
# Deploy scripts/configurations
COPY etc/ /opt/docker/etc/
COPY provision/ /opt/docker/provision/
RUN /opt/docker/bin/control.sh provision.role boilerplate-main \
&& /opt/docker/bin/control.sh provision.role boilerplate-main-development \
&& /opt/docker/bin/control.sh provision.role.startup boilerplate-deployment \
&& /opt/docker/bin/control.sh service.enable cron \
&& /opt/docker/bin/control.sh service.enable dnsmasq \
&& /opt/docker/bin/control.sh service.enable postfix \
&& /opt/docker/bin/bootstrap.sh
# Configure volume/workdir
RUN mkdir -p /application/code/
WORKDIR /application/code/