commit | author | age
|
889502
|
1 |
FROM debian |
JK |
2 |
MAINTAINER Jacek Kowalski <Jacek@jacekk.info> |
|
3 |
|
219dea
|
4 |
ENV UNIFI_VERSION 4.8.18 |
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 \ |
|
12 |
&& wget "http://dl.ubnt.com/unifi/${UNIFI_VERSION}/unifi_sysvinit_all.deb" \ |
|
13 |
&& dpkg -i unifi_sysvinit_all.deb \ |
|
14 |
&& rm -rf /var/lib/unifi/* |
|
15 |
|
|
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"] |