Add rust implementation

This commit is contained in:
2022-12-14 22:33:38 +01:00
parent e36487b5ad
commit a5827721cd
39 changed files with 2473 additions and 1410 deletions

View File

@@ -0,0 +1,21 @@
FROM rust:bullseye AS builder
WORKDIR /app
COPY . .
RUN cargo build --bin books_downloader
FROM debian:bullseye-slim
RUN apt-get update \
&& apt-get install -y openssl ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN update-ca-certificates
WORKDIR /app
COPY --from=builder /app/target/debug/books_downloader /usr/local/bin
ENTRYPOINT ["/usr/local/bin/books_downloader"]