2022-09-13 08:57:02 +03:00
|
|
|
FROM rust:alpine as builder
|
2017-10-09 14:29:03 +03:00
|
|
|
|
2022-09-13 08:57:02 +03:00
|
|
|
RUN apk update
|
|
|
|
RUN apk add --no-cache openssl-dev musl-dev
|
|
|
|
|
|
|
|
WORKDIR /usr/src/martin
|
2017-10-09 14:29:03 +03:00
|
|
|
ADD . .
|
|
|
|
RUN cargo build --release
|
|
|
|
|
2022-09-13 08:57:02 +03:00
|
|
|
|
2017-10-09 14:29:03 +03:00
|
|
|
FROM alpine:latest
|
|
|
|
|
2022-09-27 20:24:02 +03:00
|
|
|
RUN apk add --no-cache libc6-compat
|
|
|
|
|
2017-10-09 14:29:03 +03:00
|
|
|
COPY --from=builder \
|
2022-09-13 08:57:02 +03:00
|
|
|
/usr/src/martin/target/release/martin \
|
2017-10-09 14:29:03 +03:00
|
|
|
/usr/local/bin/
|
2018-01-19 14:06:01 +03:00
|
|
|
|
2019-01-09 09:47:14 +03:00
|
|
|
EXPOSE 3000
|
2020-01-09 14:50:19 +03:00
|
|
|
CMD /usr/local/bin/martin
|