diff --git a/Dockerfile b/Dockerfile index 2601768..c4116e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \