From abba563d2342ac017518dd61b92423f52db62eb0 Mon Sep 17 00:00:00 2001 From: Johannes Heuel Date: Fri, 16 Feb 2024 20:26:44 +0100 Subject: [PATCH] fix Dockerfile --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cd32c25..0e74725 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,9 +12,10 @@ RUN echo "fn main() {}" > src/main.rs COPY Cargo.toml ./ COPY Cargo.lock ./ RUN cargo build --release --locked +RUN rm /app/target/release/ohrwurm COPY . . -RUN cargo build --release --locked +RUN cargo build --release --locked && cp /app/target/release/ohrwurm /ohrwurm # Release image FROM debian:bullseye-slim @@ -22,6 +23,6 @@ FROM debian:bullseye-slim RUN apt-get update && apt-get install -y python3-pip ffmpeg RUN pip install -U yt-dlp -COPY --from=build /app/target/release/ohrwurm . +COPY --from=build /ohrwurm . CMD ["./ohrwurm"]