|
|
@ -0,0 +1,14 @@ |
|
|
|
FROM rust:1.43.1-slim-stretch as build |
|
|
|
COPY . /project |
|
|
|
WORKDIR /project |
|
|
|
RUN apt-get update \ |
|
|
|
&& apt-get install -y pkg-config libssl-dev curl |
|
|
|
RUN cargo build --release |
|
|
|
|
|
|
|
FROM debian:stretch-slim |
|
|
|
RUN apt-get update \ |
|
|
|
&& apt-get install -y curl \ |
|
|
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
COPY --from=build /project/target/release/animebox-sync /usr/bin/animebox-sync |
|
|
|
WORKDIR /app |
|
|
|
CMD ["animebox-sync", "backup.abbj", "download"] |