commit | author | age
|
889502
|
1 |
FROM debian |
JK |
2 |
MAINTAINER Jacek Kowalski <Jacek@jacekk.info> |
|
3 |
|
406f25
|
4 |
ENV UNIFI_VERSION 5.3.8 |
889502
|
5 |
|
JK |
6 |
RUN apt-get update \ |
|
7 |
&& apt-get -y dist-upgrade \ |
|
8 |
&& apt-get -y install wget jsvc openjdk-7-jre-headless mongodb-server binutils \ |
|
9 |
&& apt-get -y clean |
|
10 |
|
|
11 |
RUN cd /tmp \ |
8aadba
|
12 |
&& wget "https://www.ubnt.com/downloads/unifi/${UNIFI_VERSION}/unifi_sysvinit_all.deb" \ |
889502
|
13 |
&& dpkg -i unifi_sysvinit_all.deb \ |
77a948
|
14 |
&& rm -rf unifi_sysvinit_all.deb /var/lib/unifi/* |
889502
|
15 |
|
JK |
16 |
EXPOSE 8080 8081 8443 8843 8880 |
|
17 |
|
|
18 |
VOLUME /usr/lib/unifi/data |
|
19 |
|
|
20 |
WORKDIR /var/lib/unifi |
|
21 |
CMD ["/usr/bin/java", "-Xmx1024M", "-jar", "/usr/lib/unifi/lib/ace.jar", "start"] |