onion2s-build/Dockerfile
Andreas Mieke cd2cf79ccf
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
feat(linker): Add cargo linker to dockerfile
2024-11-21 01:41:39 -05:00

11 lines
531 B
Docker

FROM ghcr.io/cross-rs/mips-unknown-linux-musl:latest
RUN apt update && apt install -y git wget subversion build-essential libncurses5-dev zlib1g-dev gawk flex quilt git-core unzip libssl-dev python-dev python-pip libxml-parser-perl time
RUN git clone https://github.com/OnionIoT/source.git
COPY openwrt-build-config source/.config
ENV FORCE_UNSAFE_CONFIGURE=1
ENV CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_MUSL_LINKER=/source/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/bin/mipsel-openwrt-linux-musl-gcc
RUN cd source && make -j12