martin/Dockerfile

24 lines
522 B
Docker
Raw Normal View History

FROM rust:alpine as builder
2017-10-09 14:29:03 +03:00
WORKDIR /usr/src/martin
RUN apk update \
2023-09-30 12:58:49 +03:00
&& apk add --no-cache musl-dev perl build-base
COPY . .
2023-09-30 12:58:49 +03:00
RUN CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse cargo build --release
2017-10-09 14:29:03 +03:00
2017-10-09 14:29:03 +03:00
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
2017-10-09 14:29:03 +03:00
COPY --from=builder \
/usr/src/martin/target/release/martin \
2017-10-09 14:29:03 +03:00
/usr/local/bin/
2018-01-19 14:06:01 +03:00
EXPOSE 3000
ENTRYPOINT ["/usr/local/bin/martin"]