mirror of
https://github.com/bee-san/RustScan.git
synced 2026-11-11 01:11:45 -10:00
19 lines
768 B
Docker
19 lines
768 B
Docker
FROM rust:latest
|
|
|
|
COPY . /sourcefiles
|
|
WORKDIR "/sourcefiles"
|
|
|
|
RUN apt update -y && apt upgrade -y
|
|
RUN apt install libc6-dev-i386 -y
|
|
RUN git clone --depth=1 https://github.com/raspberrypi/tools /raspberrypi-tools
|
|
ENV PATH=/raspberrypi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/:$PATH
|
|
ENV CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc
|
|
RUN mkdir /root/.cargo
|
|
RUN echo "[target.arm-unknown-linux-gnueabihf]" >> /root/.cargo/config
|
|
RUN echo "strip = { path = \"arm-linux-gnueabihf-strip\" }" >> /root/.cargo/config
|
|
RUN echo "objcopy = { path = \"arm-linux-gnueabihf-objcopy\" }" >> /root/.cargo/config
|
|
|
|
COPY rustscan-debbuilder/testing/entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
ENTRYPOINT ["/entrypoint.sh"]
|