martin/Dockerfile

24 lines
562 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 \
&& apk add --no-cache openssl-dev musl-dev perl build-base
COPY . .
RUN CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse cargo build --release --features=vendored-openssl
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"]