Jacek Kowalski
2017-03-18 0d69de5be61b86ff2827055962d0c0a6d521f18e
commit | author | age
b3137e 1 FROM debian:jessie
889502 2 MAINTAINER Jacek Kowalski <Jacek@jacekk.info>
JK 3
0d69de 4 ENV UNIFI_VERSION 5.4.11
889502 5
b3137e 6 RUN echo 'deb http://httpredir.debian.org/debian jessie-backports main' > \
JK 7                 /etc/apt/sources.list.d/jessie-backports.list \
8     && apt-get update \
889502 9     && apt-get -y dist-upgrade \
b3137e 10     && apt-get -y -t jessie-backports install \
JK 11         wget jsvc openjdk-8-jre-headless mongodb-server binutils \
889502 12     && apt-get -y clean
JK 13
14 RUN cd /tmp \
8aadba 15     && wget "https://www.ubnt.com/downloads/unifi/${UNIFI_VERSION}/unifi_sysvinit_all.deb" \
889502 16     && dpkg -i unifi_sysvinit_all.deb \
77a948 17     && rm -rf unifi_sysvinit_all.deb /var/lib/unifi/*
889502 18
JK 19 EXPOSE 8080 8081 8443 8843 8880
20
21 VOLUME /usr/lib/unifi/data
22
23 WORKDIR /var/lib/unifi
24 CMD ["/usr/bin/java", "-Xmx1024M", "-jar", "/usr/lib/unifi/lib/ace.jar", "start"]