-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (18 loc) · 757 Bytes
/
Dockerfile
File metadata and controls
24 lines (18 loc) · 757 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
FROM debian:jessie
MAINTAINER David Gersting
LABEL unifi-version="5.2.9"
VOLUME ["/usr/lib/unifi/data", "/usr/lib/unifi/logs"]
WORKDIR /usr/lib/unifi
EXPOSE 8443 8080 8880 8843
# Add Unifi config file
COPY unifi.conf /usr/lib/unifi/data/system.properties
# Add MongoDB(EA312927) & Ubiquiti(C0A52C50) repos
COPY repos.list /etc/apt/sources.list.d/repos.list
# Setup container
RUN \
apt-key adv --keyserver keyserver.ubuntu.com --recv EA312927 2>&1 && \
apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50 2>&1 && \
apt-get update -yq && apt-get install -yq net-tools unifi && \
rm -rf /var/lib/apt/lists/*
# Change to non-privileged user and launch unifi
CMD ["java", "-Xmx256M", "-jar", "/usr/lib/unifi/lib/ace.jar", "start"]