-
Notifications
You must be signed in to change notification settings - Fork 181
Expand file tree
/
Copy pathUbuntu-HHVM
More file actions
64 lines (50 loc) · 1.43 KB
/
Ubuntu-HHVM
File metadata and controls
64 lines (50 loc) · 1.43 KB
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
64
#++++++++++++++++++++++++++++++++++++++
# Ubuntu PHP Docker container
#++++++++++++++++++++++++++++++++++++++
#
# Prebuild images:
#
# webdevops/php-boilerplate:ubuntu-14.04
#
# Official images:
#
# ubuntu:14.04 - PHP 5.5, LTS (trusty)
# https://hub.docker.com/r/library/ubuntu/
#
#++++++++++++++++++++++++++++++++++++++
FROM webdevops/php-boilerplate:ubuntu-14.04
ENV PROVISION_SYS_UPDATE 0
ENV PROVISION_PHP_DISTRIBUTION hhvm
# Ensure UTF-8
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
##
# Bootstrap
##
COPY conf/ubuntu/locale.conf /opt/docker/locale.conf
COPY bin/ubuntu/bootstrap.sh /opt/docker/bin/bootstrap.sh
COPY bin/provision.sh /opt/docker/bin/provision.sh
COPY bin/logwatch.sh /opt/docker/bin/logwatch.sh
COPY bin/dnsmasq.sh /opt/docker/bin/dnsmasq.sh
COPY provision /opt/docker/provision/
COPY conf/bashrc /root/.bashrc
COPY conf/bashrc /home/.bashrc
RUN bash /opt/docker/bin/bootstrap.sh
RUN bash /opt/docker/bin/provision.sh bootstrap
##
# Customization
##
COPY bin/customization.sh /opt/docker/bin/customization.sh
RUN bash /opt/docker/bin/customization.sh
##
# Config
##
COPY etc /opt/docker/etc/
COPY bin/entrypoint.sh /entrypoint.sh
COPY conf/ubuntu-hhvm /opt/docker/conf/
EXPOSE 9000
VOLUME /docker/
WORKDIR /docker/code/
ENTRYPOINT ["/entrypoint.sh"]
CMD ["supervisord"]