mirror of
https://github.com/maplibre/martin.git
synced 2024-12-24 07:22:52 +03:00
8d7204c53d
Fixes #471
24 lines
522 B
Docker
Executable File
24 lines
522 B
Docker
Executable File
FROM rust:alpine as builder
|
|
|
|
WORKDIR /usr/src/martin
|
|
|
|
RUN apk update \
|
|
&& apk add --no-cache musl-dev perl build-base
|
|
|
|
COPY . .
|
|
RUN CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse cargo build --release
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
LABEL org.opencontainers.image.description="Blazing fast and lightweight tile server with PostGIS, MBTiles, and PMTiles support"
|
|
|
|
RUN apk add --no-cache libc6-compat
|
|
|
|
COPY --from=builder \
|
|
/usr/src/martin/target/release/martin \
|
|
/usr/local/bin/
|
|
|
|
EXPOSE 3000
|
|
ENTRYPOINT ["/usr/local/bin/martin"]
|