mirror of
https://github.com/maplibre/martin.git
synced 2024-12-21 05:41:55 +03:00
3332474ae9
* use official rust base image to build docker image * use latest dependencies
19 lines
290 B
Docker
Executable File
19 lines
290 B
Docker
Executable File
FROM rust:alpine as builder
|
|
|
|
RUN apk update
|
|
RUN apk add --no-cache openssl-dev musl-dev
|
|
|
|
WORKDIR /usr/src/martin
|
|
ADD . .
|
|
RUN cargo build --release
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
COPY --from=builder \
|
|
/usr/src/martin/target/release/martin \
|
|
/usr/local/bin/
|
|
|
|
EXPOSE 3000
|
|
CMD /usr/local/bin/martin
|