Skip to content

Instantly share code, notes, and snippets.

@nexus166
Created March 12, 2020 22:37
Show Gist options
  • Select an option

  • Save nexus166/9e49fe1709ec04efecc06b09570704a7 to your computer and use it in GitHub Desktop.

Select an option

Save nexus166/9e49fe1709ec04efecc06b09570704a7 to your computer and use it in GitHub Desktop.
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