mirror of
https://github.com/maplibre/martin.git
synced 2024-12-21 05:41:55 +03:00
55e0b9a810
* Declare vendored-openssl feature in cargo.toml * Statically link openssl library when building Docker image
21 lines
371 B
Docker
Executable File
21 lines
371 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
|
|
CMD /usr/local/bin/martin
|