mirror of
https://github.com/maplibre/martin.git
synced 2024-12-30 10:22:27 +03:00
c7ce464005
* Add missing `libc6-compat` in Dockerfile Co-authored-by: Yuri Astrakhan <yuriastrakhan@gmail.com>
21 lines
327 B
Docker
Executable File
21 lines
327 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
|
|
|
|
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
|