Skip to content

Instantly share code, notes, and snippets.

@divanvisagie
Created February 19, 2018 18:53
Show Gist options
  • Save divanvisagie/e55fcda41c963329fab9a42ff2bcecde to your computer and use it in GitHub Desktop.
Save divanvisagie/e55fcda41c963329fab9a42ff2bcecde to your computer and use it in GitHub Desktop.
Orange Pi Zero Unifi (Medium Post)
FROM resin/rpi-raspbian
MAINTAINER Erik de Vries <docker@erikdevries.nl>
RUN echo 'deb http://www.ubnt.com/downloads/unifi/debian unifi5 ubiquiti' | tee -a /etc/apt/sources.list.d/ubnt.list > /dev/null && \
apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50 && \
apt-get update && \
apt-get upgrade && \
apt-get install -y \
unifi \
&& \
echo 'ENABLE_MONGODB=no' | tee -a /etc/mongodb.conf > /dev/null && \
apt-get -q clean && \
rm -rf /var/lib/apt/lists/*
VOLUME ["/var/lib/unifi", "/var/log/unifi"]
COPY ./entrypoint.sh /entrypoint.sh
EXPOSE 6789/tcp 8080/tcp 8443/tcp 8880/tcp 8843/tcp 3478/udp
ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment