-
Notifications
You must be signed in to change notification settings - Fork 492
/
Dockerfile
39 lines (35 loc) · 1.14 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
#+++++++++++++++++++++++++++++++++++++++
# Dockerfile for webdevops/php-nginx-dev:ubuntu-16.04
# -- automatically generated --
#+++++++++++++++++++++++++++++++++++++++
FROM webdevops/php-nginx:ubuntu-16.04
ENV WEB_DOCUMENT_ROOT=/app \
WEB_DOCUMENT_INDEX=index.php \
WEB_ALIAS_DOMAIN=*.vm \
WEB_PHP_TIMEOUT=600 \
WEB_PHP_SOCKET=""
ENV WEB_PHP_SOCKET=127.0.0.1:9000
ENV WEB_NO_CACHE_PATTERN="\.(css|js|gif|png|jpg|svg|json|xml)$"
COPY conf/ /opt/docker/
RUN set -x \
# Install development environment
&& apt-install \
gnupg \
&& wget -O - https://packagecloud.io/gpg.key | apt-key add - \
&& echo "deb https://packages.blackfire.io/debian any main" | tee /etc/apt/sources.list.d/blackfire.list \
&& apt-install \
# Install tools
graphviz \
# Install php development stuff
php-xdebug \
blackfire-php \
blackfire-agent \
# Tools
nano \
vim \
# Enable php development services
&& docker-service enable syslog \
&& docker-service enable postfix \
&& docker-service enable ssh \
&& docker-run-bootstrap \
&& docker-image-cleanup