Files
StarPilot/mapd_repo/Dockerfile
T
firestar5683 1ce9f73ae2 Navigation and maps
Add navigation and map matching providers with the vendored map service sources.
2026-10-03 22:34:37 +00:00

27 lines
526 B
Docker

FROM golang:1.25.1-bookworm AS go-toolchain
FROM ubuntu:24.04
WORKDIR /usr/local/app
COPY --from=go-toolchain /usr/local/go /usr/local/go
ENV PATH="/usr/local/go/bin:/root/go/bin:${PATH}"
ENV GOTOOLCHAIN=local
# Install the application dependencies
COPY scripts/install-ubuntu-deps.sh ./
RUN ./install-ubuntu-deps.sh
COPY go.mod ./
COPY go.sum ./
RUN go mod download
COPY Makefile ./
RUN make capnp-deps
COPY . /usr/local/app
RUN make build-static
RUN mv build/mapd ./mapd
RUN mv scripts/* ./
CMD ["./docker_entry.sh"]