Use vault

This commit is contained in:
2024-04-14 11:57:19 +02:00
parent 68fae38488
commit 0b4b918f6b
7 changed files with 28 additions and 22 deletions

View File

@@ -1,21 +0,0 @@
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"]

View File

@@ -15,7 +15,10 @@ RUN apt-get update \
RUN update-ca-certificates
COPY ./scripts/*.sh /
RUN chmod +x /*.sh
WORKDIR /app
COPY --from=builder /app/target/release/books_downloader /usr/local/bin
ENTRYPOINT ["/usr/local/bin/books_downloader"]
CMD ["/start.sh"]