add new dependencies to dockerfile, fix broken copy layers
This commit is contained in:
parent
cac2a020bc
commit
f72e31ab15
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
|
||||
|
||||
WORKDIR /app
|
||||
COPY Cargo.toml Cargo.lock src/ /app/
|
||||
COPY Cargo.toml Cargo.lock /app/
|
||||
COPY src/ /app/src
|
||||
|
||||
RUN cargo build --release
|
||||
RUN strip target/release/mk-dl-bot
|
||||
|
||||
# Rust
|
||||
# Run
|
||||
FROM alpine:3.19
|
||||
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 .
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue