commit | author | age
|
be61ed
|
1 |
FROM openjdk:8-jre-slim |
889502
|
2 |
MAINTAINER Jacek Kowalski <Jacek@jacekk.info> |
JK |
3 |
|
998359
|
4 |
ENV UNIFI_VERSION 5.6.39 |
889502
|
5 |
|
b8af88
|
6 |
RUN apt-get update \ |
JK |
7 |
&& apt-get -y install \ |
9f0c44
|
8 |
wget jsvc mongodb-server libcap2 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" \ |
6269af
|
14 |
&& groupadd -r -g 500 unifi \ |
66d7d1
|
15 |
&& useradd -r -d /usr/lib/unifi -u 500 -g 500 unifi \ |
9f0c44
|
16 |
&& dpkg -i unifi_sysvinit_all.deb \ |
JK |
17 |
&& rm -rf unifi_sysvinit_all.deb /var/lib/unifi/* \ |
|
18 |
&& mkdir -p /usr/lib/unifi/data /var/lib/unifi \ |
41033e
|
19 |
&& chown -Rf unifi:unifi /usr/lib/unifi /var/lib/unifi |
66d7d1
|
20 |
|
bab5d7
|
21 |
EXPOSE 8080 8443 8843 8880 |
889502
|
22 |
|
JK |
23 |
VOLUME /usr/lib/unifi/data |
|
24 |
|
|
25 |
WORKDIR /var/lib/unifi |
66d7d1
|
26 |
COPY run.sh /run.sh |
JK |
27 |
CMD /run.sh |
41033e
|
28 |
|
JK |
29 |
USER unifi |
8e966a
|
30 |
|
JK |
31 |
HEALTHCHECK --start-period=3m CMD wget -q -O /dev/null --no-check-certificate \ |
|
32 |
https://127.0.0.1:8443/manage/account/login |