Files
openlan-cgw/Dockerfile
Oleksandr Mazur c3172eed34 Implement dockerized building and running of CGW
- 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>
2024-04-04 11:24:34 +03:00

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"]