2022-09-13 08:57:02 +03:00
|
|
|
FROM rust:alpine as builder
|
2017-10-09 14:29:03 +03:00
|
|
|
|
2022-09-13 08:57:02 +03:00
|
|
|
WORKDIR /usr/src/martin
|
2023-03-28 09:28:55 +03:00
|
|
|
|
|
|
|
RUN apk update \
|
|
|
|
&& apk add --no-cache openssl-dev musl-dev perl build-base
|
|
|
|
|
|
|
|
COPY . .
|
2023-03-25 21:20:39 +03:00
|
|
|
RUN CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse cargo build --release --features=vendored-openssl
|
2017-10-09 14:29:03 +03:00
|
|
|
|
2022-09-13 08:57:02 +03:00
|
|
|
|
2017-10-09 14:29:03 +03:00
|
|
|
FROM alpine:latest
|
|
|
|
|
2023-03-16 23:01:33 +03:00
|
|
|
LABEL org.opencontainers.image.description="Blazing fast and lightweight tile server with PostGIS, MBTiles, and PMTiles support"
|
|
|
|
|
2022-09-27 20:24:02 +03:00
|
|
|
RUN apk add --no-cache libc6-compat
|
|
|
|
|
2017-10-09 14:29:03 +03:00
|
|
|
COPY --from=builder \
|
2022-09-13 08:57:02 +03:00
|
|
|
/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
|
|
|
|
2019-01-09 09:47:14 +03:00
|
|
|
EXPOSE 3000
|
2022-11-02 21:00:05 +03:00
|
|
|
ENTRYPOINT ["/usr/local/bin/martin"]
|