FROM rust:buster as builder

COPY . /app
WORKDIR /app

RUN cargo build --release

FROM debian:buster

RUN apt update && apt upgrade -y
RUN apt install -y gnupg ca-certificates openssl ffmpeg python3 python3-mutagen

COPY ./src/extract_metadata.py /extract_metadata.py
COPY --from=builder /app/target/release/synthwave /synthwave

WORKDIR /

CMD ["/synthwave"]