martin/Dockerfile
Stepan Kuzmin c7ce464005
Add missing libc6-compat in Dockerfile (#419)
* Add missing `libc6-compat` in Dockerfile

Co-authored-by: Yuri Astrakhan <yuriastrakhan@gmail.com>
2022-09-27 17:24:02 +00:00

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