From 25885b8e08252db20f2a50e64184b6a59e546a73 Mon Sep 17 00:00:00 2001 From: fx Date: Fri, 13 Oct 2023 15:26:05 +0200 Subject: stuff --- Dockerfile.build | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile.build (limited to 'Dockerfile.build') diff --git a/Dockerfile.build b/Dockerfile.build new file mode 100644 index 0000000..3bbaf39 --- /dev/null +++ b/Dockerfile.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:bullseye-slim +FROM debian:trixie-slim +# RUN apt-get update && apt-get 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