add new dependencies to dockerfile, fix broken copy layers
This commit is contained in:
parent
910245061e
commit
0aa70432d5
1 changed files with 5 additions and 2 deletions
|
|
@ -5,14 +5,17 @@ ENV RUSTFLAGS="-C target-feature=-crt-static"
|
||||||
RUN apk add --no-cache musl-dev openssl-dev
|
RUN apk add --no-cache musl-dev openssl-dev
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY Cargo.toml Cargo.lock src/ /app/
|
COPY Cargo.toml Cargo.lock /app/
|
||||||
|
COPY src/ /app/src
|
||||||
|
|
||||||
RUN cargo build --release
|
RUN cargo build --release
|
||||||
RUN strip target/release/mk-dl-bot
|
RUN strip target/release/mk-dl-bot
|
||||||
|
|
||||||
# Rust
|
# Run
|
||||||
FROM alpine:3.19
|
FROM alpine:3.19
|
||||||
RUN apk add --no-cache libgcc
|
RUN apk add --no-cache libgcc
|
||||||
|
RUN apk add --no-cache ffmpeg python3 py3-pip
|
||||||
|
RUN pip install --break-system-packages yt-dlp
|
||||||
|
|
||||||
COPY --from=0 /app/target/release/mk-dl-bot .
|
COPY --from=0 /app/target/release/mk-dl-bot .
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue