13 lines
560 B
Docker
13 lines
560 B
Docker
FROM rust:1 as builder
|
|
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
|
|
RUN apt-get update && apt-get --no-install-recommends install -y ffmpeg
|
|
# Install yt-dlp from github releases for bugfix
|
|
ADD https://github.com/ytdl-patched/yt-dlp/releases/download/2023.03.03.19419/yt-dlp_linux /usr/local/bin/yt-dlp
|
|
RUN chmod a+rx /usr/local/bin/yt-dlp
|
|
COPY --from=builder /usr/local/cargo/bin/dj_kitty_cat /usr/local/bin/dj_kitty_cat
|
|
CMD ["dj_kitty_cat"]
|