-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
23 lines (19 loc) · 903 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM seif/mono
MAINTAINER Seif Attar <[email protected]>
ADD service/ /etc/service/
ADD config/runit/1 /etc/runit/1
ADD config/runit/1.d/cleanup-pids /etc/runit/1.d/cleanup-pids
ADD config/runit/2 /etc/runit/2
ADD runit_bootstrap /usr/sbin/runit_bootstrap
RUN echo "deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main" | tee -a /etc/apt/sources.list.d/mono-xamarin.list \
&& apt-get update \
&& apt-get install runit nginx mono-fastcgi-server4 -y --no-install-recommends \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/* \
&& mkdir -p /etc/mono/registry /etc/mono/registry/LocalMachine \
&& find /etc/service/ -name run -exec chmod u+x {} \; \
&& chmod u+x /usr/sbin/runit_bootstrap;
ADD config/default /etc/nginx/sites-available/
ADD config/fastcgi_params /etc/nginx/
ADD runit_bootstrap /usr/sbin/runit_bootstrap
EXPOSE 80