-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathDockerfile
24 lines (20 loc) · 818 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
24
FROM mono
MAINTAINER Seif Attar <[email protected]>
RUN apt-get update \
&& apt-get update \
&& apt-get install mono-devel apache2 libapache2-mod-mono mono-apache-server4 -y --no-install-recommends \
&& a2enmod mod_mono \
&& service apache2 stop \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/tmp/* \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /etc/mono/registry /etc/mono/registry/LocalMachine \
&& sed -ri ' \
s!^(\s*CustomLog)\s+\S+!\1 /proc/self/fd/1!g; \
s!^(\s*ErrorLog)\s+\S+!\1 /proc/self/fd/2!g; \
' /etc/apache2/apache2.conf
ADD ./config/apache2-site.conf /etc/apache2/sites-available/default
WORKDIR /var/www
EXPOSE 80
CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]