This repository has been archived by the owner on Mar 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a593b50
commit ba8194a
Showing
1 changed file
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
FROM ubuntu:latest | ||
FROM ubuntu:bionic | ||
LABEL maintainer="David Zumbrunnen <[email protected]>" | ||
|
||
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"] | ||
|
||
|