You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
427 B
14 lines
427 B
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"]
|