diff --git a/Dockerfile b/Dockerfile index 4464608..365305c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,20 @@ -FROM ubuntu:latest +FROM ubuntu:bionic LABEL maintainer="David Zumbrunnen " ENV DEBIAN_FRONTEND noninteractive +ENV UNIFI_VERSION 5.8.24 -RUN apt-get update && apt-get -y install gnupg ca-certificates - -RUN echo "deb http://www.ubnt.com/downloads/unifi/debian stable ubiquiti" > /etc/apt/sources.list.d/unifi.list -RUN echo "deb https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse" > /etc/apt/sources.list.d/mongodb.list -RUN apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50 -RUN apt-key adv --keyserver keyserver.ubuntu.com --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5 +RUN apt-get update && apt-get -y install binutils libcap2 curl openjdk-8-jre-headless jsvc gnupg ca-certificates +RUN echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" > /etc/apt/sources.list.d/mongodb.list +RUN apt-key adv --keyserver keyserver.ubuntu.com --recv 0C49F3730359A14518585931BC711F9BA15703C6 RUN apt-get update && \ - apt-get -y install unifi && \ + apt-get -y install mongodb-org-server && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* +RUN curl -o unifi_sysvinit_all.deb http://dl.ubnt.com/unifi/${UNIFI_VERSION}/unifi_sysvinit_all.deb && \ + dpkg -i unifi_sysvinit_all.deb && \ + rm unifi_sysvinit_all.deb VOLUME ["/var/lib/unifi"]