summaryrefslogtreecommitdiff
path: root/Dockerfile.build
diff options
context:
space:
mode:
authorfx <[email protected]>2023-10-13 15:26:05 +0200
committerfx <[email protected]>2023-10-13 15:26:05 +0200
commit25885b8e08252db20f2a50e64184b6a59e546a73 (patch)
tree65b0f8b2574d6e0ae044973b09be80da6ff8294f /Dockerfile.build
parentf985e3c21d3241fa0fa0e231ed700c6bec163a6e (diff)
downloadwebol-25885b8e08252db20f2a50e64184b6a59e546a73.tar
webol-25885b8e08252db20f2a50e64184b6a59e546a73.tar.gz
webol-25885b8e08252db20f2a50e64184b6a59e546a73.zip
stuff
Diffstat (limited to 'Dockerfile.build')
-rw-r--r--Dockerfile.build16
1 files changed, 16 insertions, 0 deletions
diff --git a/Dockerfile.build b/Dockerfile.build
new file mode 100644
index 0000000..3bbaf39
--- /dev/null
+++ b/Dockerfile.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:bullseye-slim
10FROM debian:trixie-slim
11# RUN apt-get update && apt-get 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"]