FROM rust:1.77.0 as builder LABEL Description="OpenLan CGW (Build) environment" WORKDIR /usr/src/openlan-cgw RUN rustup target add x86_64-unknown-linux-gnu RUN apt-get update -q -y && apt-get install -q -y \ pkg-config \ build-essential \ cmake \ protobuf-compiler \ libssl-dev CMD ["make", "-C", "/usr/src/openlan-cgw", "cgw-app"] FROM busybox:glibc as cgw-img COPY --from=builder /lib/x86_64-linux-gnu/ /lib/x86_64-linux-gnu/ COPY output/bin/ucentral-cgw /usr/local/bin/ucentral-cgw CMD ["ucentral-cgw"]