martin/Dockerfile
2019-08-28 12:52:12 +03:00

14 lines
273 B
Docker
Executable File

FROM ekidd/rust-musl-builder:1.37.0 as builder
ADD . .
RUN sudo chmod -R 0777 *
RUN cargo build --release
FROM alpine:latest
COPY --from=builder \
/home/rust/src/target/x86_64-unknown-linux-musl/release/martin \
/usr/local/bin/
EXPOSE 3000
CMD /usr/local/bin/martin