update Dockerfile

This commit is contained in:
OMGeeky
2024-04-28 01:56:26 +02:00
parent 2a99247123
commit 6e6b9b1583

View File

@@ -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 \