Downgrade Alpine and install static yt-dlp
This commit is contained in:
parent
eb48999aa2
commit
a5cb54d214
1 changed files with 5 additions and 4 deletions
|
@ -1,13 +1,14 @@
|
||||||
FROM rust:1.75-alpine3.19 as builder
|
FROM rust:1.74.1-alpine3.17 as builder
|
||||||
RUN apk add --no-cache musl-dev opus-dev
|
RUN apk add --no-cache musl-dev opus-dev pkgconfig
|
||||||
WORKDIR /usr/src/myapp
|
WORKDIR /usr/src/myapp
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN cargo install --path .
|
RUN cargo install --path .
|
||||||
|
|
||||||
FROM alpine:3.19
|
FROM alpine:3.19
|
||||||
RUN apk add --no-cache opus ca-certificates yt-dlp
|
ADD https://github.com/yt-dlp/yt-dlp/releases/download/2023.12.30/yt-dlp_linux /usr/local/bin/yt-dlp
|
||||||
|
RUN chmod 755 /usr/local/bin/yt-dlp
|
||||||
COPY --from=builder /usr/local/cargo/bin/dj_kitty_cat /usr/local/bin/dj_kitty_cat
|
COPY --from=builder /usr/local/cargo/bin/dj_kitty_cat /usr/local/bin/dj_kitty_cat
|
||||||
RUN useradd djkc
|
RUN adduser -D djkc
|
||||||
WORKDIR /opt
|
WORKDIR /opt
|
||||||
RUN chown djkc:djkc /opt
|
RUN chown djkc:djkc /opt
|
||||||
USER djkc
|
USER djkc
|
||||||
|
|
Loading…
Add table
Reference in a new issue