commit | author | age
|
27590d
|
1 |
FROM openjdk:7-jre-slim |
9de1b8
|
2 |
|
JK |
3 |
ENV MFI_VERSION 2.1.11 |
|
4 |
|
|
5 |
RUN apt-get update \ |
|
6 |
&& apt-get -y dist-upgrade \ |
27590d
|
7 |
&& apt-get -y install --no-install-recommends \ |
294fcc
|
8 |
wget jsvc mongodb-server binutils procps unzip \ |
27590d
|
9 |
&& apt-get -y clean \ |
JK |
10 |
&& rm -Rf /var/lib/apt/lists/* |
9de1b8
|
11 |
|
JK |
12 |
RUN cd /tmp \ |
|
13 |
&& wget "http://dl.ubnt.com/mfi/${MFI_VERSION}/mFi.unix.zip" \ |
|
14 |
&& unzip mFi.unix.zip \ |
294fcc
|
15 |
&& rm mFi.unix.zip \ |
JK |
16 |
&& mv /tmp/mFi /usr/lib/mfi \ |
|
17 |
&& cp -Rf /usr/lib/mfi/data /usr/lib/mfi/data-orig \ |
|
18 |
&& groupadd -r -g 500 mfi \ |
|
19 |
&& useradd -r -d /usr/lib/mfi -u 500 -g 500 mfi \ |
|
20 |
&& mkdir -p /var/lib/mfi \ |
|
21 |
&& chown -Rf mfi:mfi /usr/lib/mfi /var/lib/mfi |
9de1b8
|
22 |
|
b8a163
|
23 |
EXPOSE 6080 6443 |
9de1b8
|
24 |
|
JK |
25 |
VOLUME /usr/lib/mfi/data |
|
26 |
|
|
27 |
WORKDIR /var/lib/mfi |
294fcc
|
28 |
COPY run.sh /run.sh |
JK |
29 |
CMD /run.sh |
|
30 |
|
|
31 |
USER mfi |
|
32 |
|
|
33 |
HEALTHCHECK --start-period=3m CMD wget -q -O /dev/null --no-check-certificate \ |
|
34 |
https://127.0.0.1:6443/login |