Fix dockerfile
This commit is contained in:
parent
c5ee1a21cd
commit
4cc06dbca1
1 changed files with 7 additions and 4 deletions
11
Dockerfile
11
Dockerfile
|
@ -1,10 +1,13 @@
|
||||||
FROM rust:1 as builder
|
FROM rust:1 as builder
|
||||||
RUN apt-get update && apt-get install -y libopus-dev
|
RUN apt-get update && apt-get --no-install-recommends install -y libopus-dev
|
||||||
WORKDIR /usr/src/myapp
|
WORKDIR /usr/src/myapp
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN cargo install --path .
|
RUN cargo install --path .
|
||||||
|
|
||||||
FROM debian:bullseye-slim
|
FROM debian:bullseye-slim
|
||||||
RUN apt-get update && apt-get install -y ffmpeg youtube-dl
|
RUN apt-get update && apt-get --no-install-recommends install -y ffmpeg
|
||||||
COPY --from=builder /usr/local/cargo/bin/dj-kitty-cat /usr/local/bin/dj-kitty-cat
|
# Install yt-dlp from github releases for bugfix
|
||||||
CMD ["dj-kitty-cat"]
|
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"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue