mirror of
https://github.com/maplibre/martin.git
synced 2024-12-20 21:31:49 +03:00
c358ec53af
This PR adds the Dockerfile to make `linux/arm64` and `darwin/arm64` builds easier/possible. closes #603 closes #505 --------- Signed-off-by: Ismayil Mirzali <ismayilmirzeli@gmail.com> Co-authored-by: Yuri Astrakhan <YuriAstrakhan@gmail.com>
24 lines
562 B
Docker
Executable File
24 lines
562 B
Docker
Executable File
FROM rust:alpine as builder
|
|
|
|
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
|
|
|
|
|
|
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"]
|