FROM ubuntu:14.04 MAINTAINER Michael Crute RUN export DEBIAN_FRONTEND=noninteractive && \ apt-get update && \ apt-get install -y curl software-properties-common RUN export DEBIAN_FRONTEND=noninteractive && \ apt-get install -y sudo psmisc mongodb-server openjdk-7-jre-headless jsvc && \ apt-add-repository -y "deb http://dl.ubnt.com/mfi/distros/deb/ubuntu ubuntu ubiquiti" && \ apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50 && \ apt-get update && \ apt-get install -y mfi RUN \ apt-get clean && \ rm -rf /var/lib/apt/lists/* && \ rm -rf /tmp/* # Inform Port EXPOSE 6080 # HTTPS Web UI & API EXPOSE 6443 VOLUME "/var/lib/mfi" VOLUME "/var/log/mifi" CMD [ \ "/usr/bin/jsvc", "-nodetach", \ "-home", "/usr/lib/jvm/java-7-openjdk-amd64", \ "-cp", "/usr/share/java/commons-daemon.jar:/usr/lib/mfi/lib/ace.jar", \ "-pidfile", "/var/run/mfi/mfi.pid", \ "-procname", "mfi", \ "-outfile", "SYSLOG", \ "-errfile", "SYSLOG", \ "-Djava.awt.headless=true", \ "-Xmx1024M", \ "com.ubnt.ace.Launcher" \ ]