mirror of
https://github.com/maplibre/martin.git
synced 2024-12-24 07:22:52 +03:00
79c8ccb452
Publishes Martin Docker Image to GitHub Docker Registry as [`ghcr.io/maplibre/martin`](https://ghcr.io/maplibre/martin) Closes https://github.com/maplibre/martin/issues/601 --------- Co-authored-by: Yuri Astrakhan <YuriAstrakhan@gmail.com>
23 lines
512 B
Docker
Executable File
23 lines
512 B
Docker
Executable File
FROM rust:alpine as builder
|
|
|
|
RUN apk update
|
|
RUN apk add --no-cache openssl-dev musl-dev perl build-base
|
|
|
|
WORKDIR /usr/src/martin
|
|
ADD . .
|
|
RUN 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"]
|