commit | author | age
|
be61ed
|
1 |
FROM openjdk:8-jre-slim |
889502
|
2 |
MAINTAINER Jacek Kowalski <Jacek@jacekk.info> |
JK |
3 |
|
97131d
|
4 |
ENV UNIFI_VERSION 5.4.19 |
889502
|
5 |
|
b8af88
|
6 |
RUN apt-get update \ |
JK |
7 |
&& apt-get -y install \ |
be61ed
|
8 |
wget jsvc mongodb-server binutils procps sudo \ |
a7522c
|
9 |
&& apt-get -y clean \ |
JK |
10 |
&& rm -Rf /var/lib/apt/lists/* |
889502
|
11 |
|
JK |
12 |
RUN cd /tmp \ |
8aadba
|
13 |
&& wget "https://www.ubnt.com/downloads/unifi/${UNIFI_VERSION}/unifi_sysvinit_all.deb" \ |
889502
|
14 |
&& dpkg -i unifi_sysvinit_all.deb \ |
6269af
|
15 |
&& rm -rf unifi_sysvinit_all.deb /var/lib/unifi/* \ |
JK |
16 |
&& groupadd -r -g 500 unifi \ |
66d7d1
|
17 |
&& useradd -r -d /usr/lib/unifi -u 500 -g 500 unifi \ |
JK |
18 |
&& chown -Rf unifi:unifi /usr/lib/unifi |
|
19 |
|
889502
|
20 |
EXPOSE 8080 8081 8443 8843 8880 |
JK |
21 |
|
|
22 |
VOLUME /usr/lib/unifi/data |
|
23 |
|
|
24 |
WORKDIR /var/lib/unifi |
66d7d1
|
25 |
COPY run.sh /run.sh |
JK |
26 |
CMD /run.sh |