summaryrefslogblamecommitdiff
path: root/Dockerfile.arm.build
blob: 1845afe751b51ee118fe075fc91c63ae0676ff2d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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"]