-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (25 loc) · 1.06 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
FROM debian:jessie
MAINTAINER ju "[email protected]"
ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL C
ENV TERM xterm
# See http://joeyh.name/blog/entry/docker_run_debian/
RUN rm -f /usr/sbin/policy-rc.d
# dnsmasq installation fails with :
# "dnsmasq: setting capabilities failed: Operation not permitted"
# Apply workaround of https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=514214
RUN echo user=root > /etc/dnsmasq.conf
# Install mysql explicitely
# The default dependency is towards mariadb, but the regenconf script
# never exits. With mysql it just works.
RUN apt-get update \
&& apt-get install -y mysql-server \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install yunohost
#RUN apt-get install -y --force-yes --no-install-recommends wget ca-certificates
#RUN wget https://raw.githubusercontent.com/YunoHost/install_script/master/install_yunohostv2 -O /tmp/install_yunohostv2
ADD install_yunohostv2 /tmp/
RUN bash /tmp/install_yunohostv2 -a -d testing || apt-get install -y --force-yes || true
EXPOSE 22 25 53/udp 80 443 465 993 5222 5269 5290
CMD /sbin/init