mirror of
https://github.com/maplibre/martin.git
synced 2024-12-18 20:31:54 +03:00
6b114cc7f1
* Change docker image to use `entrypoint` -- so that Martin can be used as a command: ```bash docker run maplibre/martin <parameters> ``` * The docker image is now tested the same way as in the CI tests * Added a few changes to the justfile Fixes #436
21 lines
382 B
Docker
Executable File
21 lines
382 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
|
|
|
|
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"]
|