martin/arm64.Dockerfile
Ismayil Mirzali c358ec53af
feat/add arm64 docker support (#613)
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>
2023-03-28 06:28:55 +00:00

25 lines
595 B
Docker

FROM rust:1.68-bullseye as builder
WORKDIR /usr/src/martin
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libssl-dev \
perl \
&& rm -rf /var/lib/apt/lists/*
COPY . .
RUN CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse cargo build --release --features=vendored-openssl
FROM debian:bullseye-slim
LABEL org.opencontainers.image.description="Blazing fast and lightweight tile server with PostGIS, MBTiles, and PMTiles support"
COPY --from=builder \
/usr/src/martin/target/release/martin \
/usr/local/bin/
EXPOSE 3000
ENTRYPOINT ["/usr/local/bin/martin"]