Add docker build (#1)

This commit is contained in:
Nikolai Rodionov
2023-02-12 09:51:14 +01:00
committed by GitHub
parent 18fd9d827b
commit bf362afb98
12 changed files with 118 additions and 60 deletions

View File

@ -6,8 +6,8 @@ RUN cargo build --release
FROM alpine:3.17.1
COPY --from=builder /src/target/release/clin /bin/clin
COPY --from=builder /src/target/release/dudo /bin/dudo
RUN apk update && apk add --no-cache libressl-dev libc6-compat
RUN chmod +x /bin/clin
RUN chmod +x /bin/dudo
WORKDIR /workdir
ENTRYPOINT ["/bin/clin"]
ENTRYPOINT ["/bin/dudo"]