Add docker images (#5)

This commit is contained in:
Nikolai Rodionov
2023-02-14 21:16:34 +00:00
committed by GitHub
parent 1a477790c4
commit aa3435ee7b
10 changed files with 140 additions and 19 deletions

10
Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM rust:1.66.1-alpine3.17 as builder
WORKDIR /src
RUN apk update && apk add --no-cache gcc musl-dev
COPY ./ .
RUN cargo build --release
FROM alpine:3.17.1
COPY --from=builder /src/target/release/cdh /bin/cdh
WORKDIR /workdir
ENTRYPOINT ["/bin/cdh"]