FROM openwrt-builder ARG remote="origin" ARG remoteurl="https://git.laboratoryb.org/hurricos/openwrt-mirror" ARG commit="master" RUN cd ${openwrt_dir} \ && ( git remote add ${remote} ${remoteurl} --tags || true ) RUN cd ${openwrt_dir} && git fetch --all && { git checkout ${remote}/${commit} || git checkout "${commit}" ; } RUN cd ${openwrt_dir} \ && ./scripts/feeds update -a \ && ./scripts/feeds install -a