diff options
Diffstat (limited to 'Dockerfile.build')
-rw-r--r-- | Dockerfile.build | 16 |
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 @@ | |||
1 | FROM rust:1.73 as builder | ||
2 | WORKDIR /usr/src/webol | ||
3 | COPY . . | ||
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 | ||
7 | RUN cargo install --path . | ||
8 | |||
9 | # FROM --platform=arm64 debian:bullseye-slim | ||
10 | FROM debian:trixie-slim | ||
11 | # RUN apt-get update && apt-get install -y libc6 && rm -rf /var/lib/apt/lists/* | ||
12 | WORKDIR /usr/local/webol | ||
13 | COPY --from=builder /usr/local/cargo/bin/webol /usr/local/bin/webol | ||
14 | |||
15 | EXPOSE 7229 | ||
16 | CMD ["webol"] | ||