mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-08 13:33:42 +08:00
1ce9f73ae2
Add navigation and map matching providers with the vendored map service sources.
27 lines
526 B
Docker
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"]
|