martin/Dockerfile
Yuri Astrakhan 6b114cc7f1
Docker improvements and CI tests (#472)
* 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
2022-11-02 19:00:05 +01:00

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"]