FROM docker.io/alpine AS downloader WORKDIR /unifi ADD https://www.ubnt.com/downloads/unifi/5.12.66/UniFi.unix.zip Unifi.unix.zip RUN apk add unzip \ && unzip Unifi.unix.zip \ && rm Unifi.unix.zip FROM openjdk:8-jre-slim WORKDIR /unifi COPY --from=downloader /unifi/UniFi/ . VOLUME /unifi/data EXPOSE 8080 EXPOSE 8443 EXPOSE 3478/udp CMD ["java", "-jar", "lib/ace.jar", "start"]