Browse Source

Symlink data directory

5.2.7
Chris Smith 8 years ago
parent
commit
962969f89d
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      Dockerfile

+ 2
- 1
Dockerfile View File

11
     openjdk-8-jre-headless \
11
     openjdk-8-jre-headless \
12
     software-properties-common
12
     software-properties-common
13
 
13
 
14
-# UniFi 4.8.18
15
 RUN curl -L -o unifi_sysvinit_all.deb http://www.ubnt.com/downloads/unifi/4.8.18/unifi_sysvinit_all.deb && \
14
 RUN curl -L -o unifi_sysvinit_all.deb http://www.ubnt.com/downloads/unifi/4.8.18/unifi_sysvinit_all.deb && \
16
   dpkg --install unifi_sysvinit_all.deb && \
15
   dpkg --install unifi_sysvinit_all.deb && \
17
   rm unifi_sysvinit_all.deb
16
   rm unifi_sysvinit_all.deb
18
 
17
 
18
+RUN ln -s /var/lib/unifi /usr/lib/unifi/data
19
+
19
 EXPOSE 8080 8081 8443 8843 8880
20
 EXPOSE 8080 8081 8443 8843 8880
20
 
21
 
21
 VOLUME ["/var/lib/unifi"]
22
 VOLUME ["/var/lib/unifi"]

Loading…
Cancel
Save