first commit

This commit is contained in:
Nikolai Rodionov
2023-01-17 22:35:35 +01:00
commit c409ffbd6d
13 changed files with 1718 additions and 0 deletions

12
Dockerfile Normal file
View File

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