-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
29 lines (23 loc) · 1023 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
25
26
27
28
29
FROM ubuntu:16.04
MAINTAINER BK Box "[email protected]"
COPY README.md /
RUN apt-get -y update; \
apt-get -y install ca-certificates apt-transport-https; \
apt-get -y install gnupg; \
apt-key adv --keyserver keyserver.ubuntu.com --recv 06E85760C0A52C50; \
apt-key adv --keyserver keyserver.ubuntu.com --recv BE0EB6AA24F3C978; \
apt-key adv --keyserver keyserver.ubuntu.com --recv 9ecbec467f0ceb10; \
echo "deb http://www.ui.com/downloads/unifi/debian stable ubiquiti" | tee -a /etc/apt/sources.list.d/100-ubnt-unifi.list; \
echo "deb https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.0 multiverse" | tee -a /etc/apt/sources.list.d/mongodb-org-3.0.list; \
apt-get -y update; \
apt-get -y upgrade; \
apt-get -y install mongodb-org; \
apt-get -y install unifi
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ADD run.sh /usr/lib/unifi/
EXPOSE 8080 8443 8843 8880
EXPOSE 27117
EXPOSE 3478/udp
WORKDIR /usr/lib/unifi
ENTRYPOINT ["/usr/lib/unifi/run.sh"]