mirror of
https://github.com/OMGeeky/twba_downloader.git
synced 2026-02-23 15:49:59 +01:00
update Dockerfile
This commit is contained in:
@@ -15,6 +15,7 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
||||
cargo chef cook --release --locked --recipe-path recipe.json
|
||||
# Build application
|
||||
COPY /src ./src
|
||||
COPY /.cargo ./.cargo
|
||||
COPY /Cargo.toml .
|
||||
COPY /Cargo.lock .
|
||||
RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
||||
@@ -25,7 +26,7 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
||||
FROM debian:bookworm AS runtime
|
||||
WORKDIR /app
|
||||
ARG PROGNAME
|
||||
RUN apt-get update && apt-get install -y libssl-dev coreutils
|
||||
RUN apt-get update && apt-get install -y libssl-dev coreutils ffmpeg
|
||||
# Create a script to run the command and sleep for one hour after the command is done
|
||||
RUN echo "#!/bin/bash \n \
|
||||
echo \"Running command: '$PROGNAME'\" \n \
|
||||
|
||||
Reference in New Issue
Block a user