mirror of
https://github.com/sstent/unifi.git
synced 2025-12-06 06:01:37 +00:00
adding binary and build
This commit is contained in:
34
Dockerfile
34
Dockerfile
@@ -7,18 +7,30 @@ RUN mkdir -p /usr/lib/unifi/data /backups /logs
|
||||
|
||||
RUN apt-get -q update && apt-get -y upgrade && \
|
||||
apt-get install -y -q lsof anacron vim net-tools less gnupg2 apt-transport-https ca-certificates
|
||||
# add unifi repo +keys
|
||||
RUN deb http://www.ui.com/downloads/unifi/debian unifi-5.6 ubiquiti && \
|
||||
echo "deb http://www.ubnt.com/downloads/unifi/debian unifi-5.6 ubiquiti" >/etc/apt/sources.list.d/ubnt.list && \
|
||||
apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50 && \
|
||||
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 && \
|
||||
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" >/etc/apt/sources.list.d/mongodb-org-3.4.list
|
||||
|
||||
# update then install
|
||||
# COPY ["unifi_sysvinit_all.deb"]
|
||||
RUN apt-get update -q -y && \
|
||||
# apt install -y ./unifi_sysvinit_all.deb
|
||||
apt-get install -y unifi
|
||||
|
||||
RUN \
|
||||
echo "**** install packages ****" && \
|
||||
apt-get update && \
|
||||
apt-get install -y \
|
||||
binutils \
|
||||
jsvc \
|
||||
logrotate \
|
||||
mongodb-server \
|
||||
openjdk-8-jre-headless \
|
||||
wget && \
|
||||
echo "**** install unifi ****" && \
|
||||
mkdir -p /app && \
|
||||
curl -o \
|
||||
/app/unifi.deb -L \
|
||||
"https://dl.ui.com/unifi/5.6.42/unifi_sysvinit_all.deb" && \
|
||||
echo "**** cleanup ****" && \
|
||||
apt-get clean && \
|
||||
rm -rf \
|
||||
/tmp/* \
|
||||
/var/lib/apt/lists/* \
|
||||
/var/tmp/*
|
||||
|
||||
|
||||
#add scripts
|
||||
COPY ["unifi.sh","backup_unifi.sh","restore_unifi.sh", "/usr/lib/unifi/"]
|
||||
|
||||
Reference in New Issue
Block a user