unifi/example/images/ubnt-firmware-downloader/Dockerfile

17 lines
545 B
Docker

FROM danielberteaud/alpine:24.1-8
MAINTAINER Daniel Berteaud <dbd@ehtrace.com>
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"]