14 lines
610 B
Docker
14 lines
610 B
Docker
FROM rust:1 as builder
|
|
ARG OPENAI_KEY
|
|
RUN apt-get update && apt-get --no-install-recommends install -y libopus-dev
|
|
WORKDIR /usr/src/myapp
|
|
COPY . .
|
|
RUN cargo install --path .
|
|
|
|
FROM debian:bullseye-slim
|
|
COPY --from=mwader/static-ffmpeg:6.0 /ffmpeg /usr/local/bin/
|
|
RUN apt-get update && apt-get --no-install-recommends install -y python3 python3-pip libopus0
|
|
RUN python3 -m pip install -U pip setuptools wheel
|
|
RUN python3 -m pip install --force-reinstall https://github.com/yt-dlp/yt-dlp/archive/master.tar.gz
|
|
COPY --from=builder /usr/local/cargo/bin/dj_kitty_cat /usr/local/bin/dj_kitty_cat
|
|
CMD ["dj_kitty_cat"]
|