martin/Dockerfile

21 lines
371 B
Docker
Raw Normal View History

FROM rust:alpine as builder
2017-10-09 14:29:03 +03:00
RUN apk update
RUN apk add --no-cache openssl-dev musl-dev perl build-base
WORKDIR /usr/src/martin
2017-10-09 14:29:03 +03:00
ADD . .
RUN cargo build --release --features=vendored-openssl
2017-10-09 14:29:03 +03:00
2017-10-09 14:29:03 +03:00
FROM alpine:latest
RUN apk add --no-cache libc6-compat
2017-10-09 14:29:03 +03:00
COPY --from=builder \
/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
EXPOSE 3000
CMD /usr/local/bin/martin