17 lines
277 B
Docker
17 lines
277 B
Docker
FROM rust:buster as builder
|
|
|
|
COPY . /app
|
|
WORKDIR /app
|
|
|
|
RUN cargo build --release
|
|
|
|
FROM debian:buster
|
|
|
|
RUN apt update && apt upgrade -y
|
|
|
|
COPY ./src/extract_metadata.py /extract_metadata.py
|
|
COPY --from=builder /app/target/release/umbrella /umbrella
|
|
|
|
WORKDIR /
|
|
|
|
CMD ["/umbrella"]
|