aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile.arm.build
diff options
context:
space:
mode:
authorfx <[email protected]>2023-10-14 22:01:33 +0200
committerfx <[email protected]>2023-10-14 22:01:33 +0200
commit6648d1da1df9a4e4e2945739fc0fd3c7f77643cb (patch)
treee487bbf77c5280a58ee5bcd69f6b74018be96430 /Dockerfile.arm.build
parent25885b8e08252db20f2a50e64184b6a59e546a73 (diff)
downloadwebol-6648d1da1df9a4e4e2945739fc0fd3c7f77643cb.tar
webol-6648d1da1df9a4e4e2945739fc0fd3c7f77643cb.tar.gz
webol-6648d1da1df9a4e4e2945739fc0fd3c7f77643cb.zip
test this fing shit on pi wohoo
Diffstat (limited to 'Dockerfile.arm.build')
-rw-r--r--Dockerfile.arm.build16
1 files changed, 16 insertions, 0 deletions
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 @@
1FROM rust:1.73 as builder
2WORKDIR /usr/src/webol
3COPY . .
4#RUN rustup target add armv7-unknown-linux-gnueabihf
5#RUN apt update && apt install gcc-arm-linux-gnueabihf -y
6#RUN CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc cargo install --path . --target armv7-unknown-linux-gnueabihf
7RUN cargo install --path .
8
9#FROM --platform=arm64 debian:bookworm-slim
10FROM debian:bookworm-slim
11RUN apt update && apt install -y libc6 && rm -rf /var/lib/apt/lists/*
12WORKDIR /usr/local/webol
13COPY --from=builder /usr/local/cargo/bin/webol /usr/local/bin/webol
14
15EXPOSE 7229
16CMD ["webol"]