Files
ohrwurm/Dockerfile
Renovate Bot 3d26b8e6fd
Some checks failed
tests / fmt (push) Failing after 17s
tests / build (push) Failing after 10s
tests / test (push) Failing after 8s
tests / clippy (push) Failing after 15s
tests / pre-commit (push) Failing after 15s
Update rust:slim-bullseye Docker digest to d28cb53
2025-03-19 00:01:17 +00:00

29 lines
771 B
Docker

# Build image
FROM rust:slim-bullseye@sha256:d28cb53460af69241b4af695b7cbca8dfea1dfa0439a355ccdc04c347f382605 as build
RUN apt-get update && apt-get install -y \
build-essential autoconf automake cmake libtool libssl-dev pkg-config
WORKDIR "/app"
# Cache dependencies
COPY Cargo.toml Cargo.lock .
RUN mkdir src \
&& echo 'fn main() { panic!("Dummy function called!"); }' > ./src/main.rs
RUN cargo build --release --locked
# Build
COPY . .
RUN touch src/main.rs
RUN cargo build --release --locked
# Release image
FROM debian:bullseye-slim@sha256:33b7c2e071c29e618182ec872c471f39d2dde3d8904d95f5b7a61acf3a592e7b
RUN apt-get update && apt-get install -y python3-pip
RUN pip install -U yt-dlp
COPY --from=build /app/target/release/ohrwurm .
CMD ["./ohrwurm"]