mirror of
https://github.com/optim-enterprises-bv/openlan-cgw.git
synced 2025-12-30 02:10:42 +00:00
- Use special build-env docker image that uses local project directory (volume mount) to speedup build. - Implement cgw-img (docker image) generation. - Track cgw-img tag based on commit. Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
21 lines
517 B
Docker
21 lines
517 B
Docker
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"]
|