/
Dockerfile
45 lines (31 loc) · 1.34 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
FROM debian:jessie
MAINTAINER Yvonnick Esnault <yvonnick@esnau.lt>
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true
# Get Utils
RUN apt-get update && apt-get install -y wget vim less zip cron lsof sudo screen
# Get Supervisor
RUN apt-get install -y supervisor
RUN mkdir -p /var/log/supervisor
# Install Apache and php
RUN apt-get install -y apache2 php5 libapache2-mod-php5 php5-mcrypt php5-mysql php5-gd php5-dev php5-curl php5-cli php5-json php5-ldap
# Install VCS binaries (git, mercurial, subversion) to pull sources and for phabricator use
RUN apt-get install -y git subversion mercurial
# Supervisor
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# Enabled mod rewrite for phabricator
RUN a2enmod rewrite
ADD ./startup.sh /opt/startup.sh
RUN chmod +x /opt/startup.sh
ADD phabricator.conf /etc/apache2/sites-available/phabricator.conf
RUN ln -s /etc/apache2/sites-available/phabricator.conf /etc/apache2/sites-enabled/phabricator.conf
RUN rm -f /etc/apache2/sites-enabled/000-default.conf
RUN cd /opt/ && git clone https://github.com/facebook/libphutil.git
RUN cd /opt/ && git clone https://github.com/facebook/arcanist.git
RUN cd /opt/ && git clone https://github.com/facebook/phabricator.git
RUN mkdir -p '/var/repo/'
RUN ulimit -c 10000
# Clean packages
RUN apt-get clean
EXPOSE 80
CMD ["/usr/bin/supervisord"]