-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (28 loc) · 982 Bytes
/
Dockerfile
File metadata and controls
40 lines (28 loc) · 982 Bytes
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
FROM dockerfile/ubuntu
MAINTAINER Sergio Diaz <sergio@alphasquare.us>
ENV DEBIAN_FRONTEND noninteractive
# Branches and settings
ENV url = "https://github.com/mxious/mxious.git"
ENV branch = "next"
ADD . /app
WORKDIR /app
RUN apt-get update && \
apt-get upgrade && \
apt-get install -y src/core.txt
RUN apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x5a16e7281be7a449 2>&1 && \
add-apt-repository 'deb http://dl.hhvm.com/ubuntu trusty main' 2>&1 && \
apt-get update -qq && \
apt-get install -y core/stack.txt && \
apt-get -y -qq clean
RUN /usr/share/hhvm/install_fastcgi.sh && \
update-rc.d hhvm defaults && \
service hhvm restart
RUN git clone $url /usr/share/nginx/html && \
git checkout $branch
RUN rm /etc/nginx/sites-enabled/default
RUN rm /etc/nginx/sites-available/default
COPY src/default /etc/nginx/sites-enabled
COPY src/default /etc/nginx/sites-available
VOLUME ["/usr/share/nginx/html"]
VOLUME ["/etc/nginx"]
EXPOSE 80