-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (35 loc) · 1.55 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
FROM nginx
MAINTAINER NGINX-HHVM Docker Maintainers "[email protected]"
# Installing packages
RUN apt-get update && apt-get -y upgrade
RUN apt-get -y install autoconf automake binutils-dev build-essential cmake g++ gawk git \
libboost-dev libboost-filesystem-dev libboost-program-options-dev libboost-regex-dev \
libboost-system-dev libboost-thread-dev libboost-context-dev libbz2-dev libc-client-dev libldap2-dev \
libc-client2007e-dev libcap-dev libcurl4-openssl-dev libdwarf-dev libelf-dev \
libexpat-dev libgd2-xpm-dev libgoogle-glog-dev libgoogle-perftools-dev libicu-dev \
libjemalloc-dev libmcrypt-dev libmemcached-dev libmysqlclient-dev libncurses-dev \
libonig-dev libpcre3-dev libreadline-dev libtbb-dev libtool libxml2-dev zlib1g-dev \
libevent-dev libmagickwand-dev libinotifytools0-dev libiconv-hook-dev libedit-dev \
libiberty-dev libxslt1-dev ocaml-native-compilers libsqlite3-dev libyaml-dev libgmp3-dev \
php5 php5-dbg php5-common php5-mysql php5-mcrypt gperf
RUN apt-get clean && apt-get -y autoremove
# Downloading HHVM from source-code
RUN git clone git://github.com/facebook/hhvm.git hhvm-repo
# Scripts
ADD supervisor-config/ /etc/supervisor/conf.d/
ADD scripts/ /scripts/
RUN chmod 755 /scripts/*.sh
# Building HHVM
ENV HHVM_VERSION master
ENV CORE_NUMBER 4
# Building HHVM
WORKDIR /hhvm-repo
RUN git submodule update --init --recursive
RUN cmake . && make -j ${CORE_NUMBER} && make install
# Removing the pulled repository
WORKDIR /
RUN rm -rf hhvm-repo
# Exposing HHVM-FastCGI port
EXPOSE 9000
# Default command
CMD ["/scripts/start.sh"]