From 6648d1da1df9a4e4e2945739fc0fd3c7f77643cb Mon Sep 17 00:00:00 2001 From: fx Date: Sat, 14 Oct 2023 22:01:33 +0200 Subject: test this fing shit on pi wohoo --- Dockerfile.arm.build | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile.arm.build (limited to 'Dockerfile.arm.build') diff --git a/Dockerfile.arm.build b/Dockerfile.arm.build new file mode 100644 index 0000000..1845afe --- /dev/null +++ b/Dockerfile.arm.build @@ -0,0 +1,16 @@ +FROM rust:1.73 as builder +WORKDIR /usr/src/webol +COPY . . +#RUN rustup target add armv7-unknown-linux-gnueabihf +#RUN apt update && apt install gcc-arm-linux-gnueabihf -y +#RUN CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc cargo install --path . --target armv7-unknown-linux-gnueabihf +RUN cargo install --path . + +#FROM --platform=arm64 debian:bookworm-slim +FROM debian:bookworm-slim +RUN apt update && apt install -y libc6 && rm -rf /var/lib/apt/lists/* +WORKDIR /usr/local/webol +COPY --from=builder /usr/local/cargo/bin/webol /usr/local/bin/webol + +EXPOSE 7229 +CMD ["webol"] -- cgit v1.2.3