Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-07-08 10:17:22 -04:00
parent 1664d28d2d
commit 45a2b5594b
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3

View File

@ -85,18 +85,13 @@ RUN apt-get update && apt-get install -y \
ENV UNIFI_VERSION "5.8.24" ENV UNIFI_VERSION "5.8.24"
# install unifi # install unifi
RUN buildDeps=' \ RUN apt-get update && apt-get install -y \
curl \ curl \
' \
set -x \
&& apt-get update && apt-get install -y \
$buildDeps \
--no-install-recommends \ --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& curl -o /tmp/unifi.deb -L "http://dl.ubnt.com/unifi/${UNIFI_VERSION}/unifi_sysvinit_all.deb" \ && curl -o /tmp/unifi.deb -L "http://dl.ubnt.com/unifi/${UNIFI_VERSION}/unifi_sysvinit_all.deb" \
&& dpkg -i /tmp/unifi.deb \ && dpkg -i /tmp/unifi.deb \
&& rm -rf /tmp/unifi.deb \ && rm -rf /tmp/unifi.deb \
&& apt-get purge -y $buildDeps \
&& echo "Build complete." && echo "Build complete."
WORKDIR /config WORKDIR /config