17 lines
564 B
Docker
17 lines
564 B
Docker
FROM [[ .docker.repo ]][[ .docker.base_images.alpine.image ]]
|
|
MAINTAINER [[ .docker.maintainer ]]
|
|
|
|
ENV UBNT_UPDATE_API="https://fw-update.ubnt.com/api/firmware-latest?filter=eq~~product~~unifi-firmware&filter=eq~~channel~~release" \
|
|
UBNT_FIRMWARE_DIR="/opt/unifi/app/data/firmware/" \
|
|
UBNT_PLATFORMS=
|
|
|
|
RUN set -eux &&\
|
|
apk --no-cache upgrade &&\
|
|
apk --no-cache add perl-libwww \
|
|
perl-lwp-protocol-https \
|
|
perl-json \
|
|
supercronic
|
|
|
|
COPY root/ /
|
|
CMD ["ubnt-firmware-downloader.sh"]
|