forked from webdevops/TYPO3-docker-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.production
59 lines (54 loc) · 1.73 KB
/
Dockerfile.production
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
#++++++++++++++++++++++++++++++++++++++
# PHP application Docker container
#++++++++++++++++++++++++++++++++++++++
#
# PHP-Versions:
# ubuntu-12.04 -> PHP 5.3 (precise) LTS
# ubuntu-14.04 -> PHP 5.5 (trusty) LTS
# ubuntu-15.04 -> PHP 5.6 (vivid)
# ubuntu-15.10 -> PHP 5.6 (wily)
# ubuntu-16.04 -> PHP 7.0 (xenial) LTS
# centos-7 -> PHP 5.4
# debian-7 -> PHP 5.4 (wheezy)
# debian-8 -> PHP 5.6 and 7.x (jessie)
# debian-9 -> PHP 7.0 (stretch)
#
# 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:ubuntu-16.04
# webdevops/php-apache:centos-7
# webdevops/php-apache:debian-7
# webdevops/php-apache:debian-8
# webdevops/php-apache:debian-8-php7
# webdevops/php-apache:debian-9
#
# 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:ubuntu-16.04
# webdevops/php-nginx:centos-7
# webdevops/php-nginx:debian-7
# webdevops/php-nginx:debian-8
# webdevops/php-nginx:debian-8-php7
# webdevops/php-nginx:debian-9
#
# HHVM:
# webdevops/hhvm-apache
# webdevops/hhvm-nginx
#
#++++++++++++++++++++++++++++++++++++++
FROM webdevops/php-apache:ubuntu-16.04
ENV PROVISION_CONTEXT "production"
# Deploy scripts/configurations
COPY etc/ /opt/docker/etc/
COPY provision/ /opt/docker/provision/
RUN /opt/docker/bin/provision run --tag bootstrap --role boilerplate-main --role boilerplate-deployment \
&& /opt/docker/bin/bootstrap.sh
# Configure volume/workdir
RUN mkdir -p /app/
WORKDIR /app/