Created
March 12, 2020 22:37
-
-
Save nexus166/9e49fe1709ec04efecc06b09570704a7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM nexus166/gobld:ubuntu-cgo | |
| SHELL ["/bin/bash", "-evxo", "pipefail", "-c"] | |
| RUN export DEBIAN_FRONTEND=noninteractive; \ | |
| apt-get update; \ | |
| apt-get dist-upgrade -y; \ | |
| apt-get install -y --no-install-recommends \ | |
| gawk binutils bsdmainutils build-essential file git libncurses5-dev perl python rsync unzip wget; \ | |
| rm -fr /var/lib/apt/cache | |
| RUN useradd --system -d /opt build && chown -vR build:build /opt | |
| USER build | |
| WORKDIR /opt | |
| RUN git clone --progress https://git.openwrt.org/openwrt/openwrt.git | |
| WORKDIR /opt/openwrt | |
| RUN ./scripts/feeds update -a | |
| RUN ./scripts/feeds install -a | |
| COPY config .config | |
| RUN make download | |
| ENTRYPOINT ["/usr/bin/make", "V=s"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment